Use Client_find_by_session() instead of a few open-coded loops.
[umurmur.git] / src / channel.h
index 35caceb4946d1f6c4707e506fc8547cbc927055c..d348184f8ccf9602268a49828270999779444af3 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2013, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2013, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2014, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2014, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -49,7 +49,6 @@ typedef struct channel {
        struct dlist flatlist_node;
        struct dlist channel_links;
        int linkcount;
-       struct dlist link_node;
 } channel_t;
 
 typedef struct {
@@ -57,11 +56,11 @@ typedef struct {
        struct dlist node;
 } channellist_t;
 
-typedef enum {
-       CHJOIN_OK,
+typedef struct {
+  bool_t CHJOIN_SILENT,
        CHJOIN_NOENTER,
        CHJOIN_WRONGPW,
-       CHJOIN_NOTFOUND,
+       CHJOIN_NOTFOUND;
 } channelJoinResult_t;
        
 void Chan_init();