Hotfix for banning issues
[umurmur.git] / src / channel.h
index 3df0af3f9f777ffa920eb298b0919085e7a5916b..44a1b5fed519b9e2b21ad8a9321cd693d15ee471 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.
 
@@ -41,7 +41,8 @@ typedef struct channel {
        char *desc;
        char *password;
        struct channel *parent;
-       bool_t temporary, noenter;
+       bool_t temporary, noenter, silent;
+       int position;
        struct dlist node;
        struct dlist subs;
        struct dlist clients;
@@ -56,11 +57,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();