fixed crash in event_join
authorpk910 <philipp@zoelle1.de>
Sat, 24 Sep 2011 19:45:37 +0000 (21:45 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 24 Sep 2011 19:45:37 +0000 (21:45 +0200)
event_neonserv_join.c

index 6397e0bf0782eedc5636d2be9ae9477257ceb631..b2ac486925eb83bce7acbf119951abdf5db86206 100644 (file)
@@ -152,7 +152,7 @@ static void neonserv_event_join_async1(struct ClientSocket *client, struct ChanU
         }
     }
     //AUTOINVITE
-    if(!strcmp(chanuserrow[3], "0") || time(0) - atol(chanuserrow[3]) >= 30) {
+    if(chanuserrow && !strcmp(chanuserrow[3], "0") && time(0) - atol(chanuserrow[3]) >= 30) {
         //TODO: autoinvite
     }
 }