initialize chan->modes on create
[NeonServV5.git] / ChanNode.c
index 7b3f1c3d71e80891cec53fd67ae96d30f25ded6e..93f4266c4e754e68ad6f60ceb9aed0a8002d7ecb 100644 (file)
@@ -141,6 +141,7 @@ struct ChanNode* addChannel(const char *name) {
     chan->topic[0] = 0;
     chan->flags = 0;
     /* mode lists */
+    chan->modes = 0;
     chan->mode_str_args = calloc(modes_with_strarg, sizeof(char*));
     chan->mode_int_args = calloc(modes_with_intarg, sizeof(int));