fixed last commit
[NeonServV5.git] / ChanNode.h
1 #ifndef _ChanNode_h
2 #define _ChanNode_h
3 #include "main.h"
4
5 struct ChanUser;
6
7 #define CHANFLAG_RECEIVED_USERLIST  0x01
8
9 struct ChanNode {
10     char name[CHANNELLEN+1];
11     char topic[TOPICLEN+1];
12     struct ChanUser *user;
13     char flags;
14     
15     struct ChanNode *next;
16 };
17
18 void init_ChanNode();
19 int is_valid_chan(const char *name);
20 struct ChanNode* getChanByName(const char *name);
21 struct ChanNode* addChannel(const char *chan);
22 void delChannel(struct ChanNode* chan, int freeChan);
23
24 #endif