fixed last commit #3
authorpk910 <philipp@zoelle1.de>
Fri, 12 Aug 2011 22:39:28 +0000 (00:39 +0200)
committerpk910 <philipp@zoelle1.de>
Fri, 12 Aug 2011 22:39:28 +0000 (00:39 +0200)
ChanNode.c
ClientSocket.c

index 5f769761d519695362fe365d30401cb146bb7f71..b8ff9f8e223ad59675a29adbaa0580678e87af05 100644 (file)
@@ -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));
     
index 0192b084fb97904eba1ce1462f5fe21ba97b3464..fb23f37cac709523cc35d5b887f21c10d9ccf530 100644 (file)
@@ -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;