fixed small bug in IRCParser.c
[NeonServV5.git] / ChanNode.c
index 47e06635179c723ebd9a4f137f1e7924b0061f67..e00acb601866ee6428046b2671fb640c321b7a81 100644 (file)
@@ -156,6 +156,7 @@ struct ChanNode* addChannel(const char *name) {
     }
     strcpy(chan->name, name);
     chan->user = NULL;
+    chan->usercount = 0;
     chan->chanbot = NULL;
     chan->topic[0] = 0;
     chan->flags = 0;
@@ -374,4 +375,3 @@ void getModeString(struct ChanNode* chan, char *modesStr) {
     #undef MODE_VALUE
     #undef MODE_VALUE_INDEX
 }
-