Add client indication of silent channels
[umurmur.git] / src / channel.h
index c32ae5be41d18551ddc162e4f054cf226b2bcc37..9979721e86d399a6bae459580c647551677ce9c7 100644 (file)
@@ -42,6 +42,7 @@ typedef struct channel {
        char *password;
        struct channel *parent;
        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();