From: pk910 Date: Fri, 12 Aug 2011 22:39:28 +0000 (+0200) Subject: fixed last commit #3 X-Git-Tag: v5.3~571 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=c0ca1087ab55d9b9de048799f68829033582f126;p=NeonServV5.git fixed last commit #3 --- diff --git a/ChanNode.c b/ChanNode.c index 5f76976..b8ff9f8 100644 --- a/ChanNode.c +++ b/ChanNode.c @@ -143,6 +143,7 @@ struct ChanNode* addChannel(const char *name) { chan->flags = 0; /* mode lists */ chan->modes = 0; + chan->trigger = NULL; chan->mode_str_args = calloc(modes_with_strarg, sizeof(char*)); chan->mode_int_args = calloc(modes_with_intarg, sizeof(int)); diff --git a/ClientSocket.c b/ClientSocket.c index 0192b08..fb23f37 100644 --- a/ClientSocket.c +++ b/ClientSocket.c @@ -38,7 +38,6 @@ struct ClientSocket* create_socket(char *host, int port, char *pass, struct User client->flags = 0; client->bufferpos = 0; client->botid = 0; - client->trigger = NULL; client->next = sockets->data; sockets->data = client; return client;