fixed small language "bug"
[NeonServV5.git] / ChanNode.h
index ea949fdf4b4c39e8308d68a09c07f6b75ab2781e..c93625c3b1072b997d8a36d4fb875f841d2c785e 100644 (file)
@@ -6,6 +6,8 @@ struct ChanUser;
 struct trigger_cache;
 
 #define CHANFLAG_RECEIVED_USERLIST  0x01
+#define CHANFLAG_REQUESTED_CHANINFO 0x02
+#define CHANFLAG_CHAN_REGISTERED    0x04
 
 struct ChanNode {
     char name[CHANNELLEN+1];
@@ -18,11 +20,13 @@ struct ChanNode {
     struct UserNode *chanbot;
     
     struct trigger_cache *trigger;
+    int channel_id;
        
     struct ChanNode *next;
 };
 
 void init_ChanNode();
+void free_ChanNode();
 int is_valid_chan(const char *name);
 struct ChanNode* getChanByName(const char *name);
 struct ChanNode* addChannel(const char *chan);