fixed event_join
authorpk910 <philipp@zoelle1.de>
Thu, 6 Oct 2011 07:53:45 +0000 (09:53 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 6 Oct 2011 07:53:45 +0000 (09:53 +0200)
src/event_neonserv_join.c

index 3bf84e8ae77a300d03e0290486b432b67d85bbda..364e40095b82f75591097d179265af8522d1fe60 100644 (file)
@@ -79,7 +79,7 @@ static void neonserv_event_join_async1(struct ClientSocket *client, struct ChanU
     printf_mysql_query("SELECT `channel_maxusers`, `channel_greeting`, `channel_usergreeting`, `channel_getop`, `channel_getvoice`, `channel_userinfo`, `channel_dynlimit` FROM `channels` WHERE `channel_id` = '%d'", chan->channel_id);
     res = mysql_use();
     if ((row = mysql_fetch_row(res)) == NULL) return;
-    if(!row[3] || !row[4]) {
+    if(!row[3] || !row[4] || !row[5]) {
         printf_mysql_query("SELECT `channel_getop`, `channel_getvoice`, `channel_userinfo` FROM `channels` WHERE `channel_name` = 'defaults'");
         res = mysql_use();
         defaultrow = mysql_fetch_row(res);