From: pk910 Date: Sat, 24 Sep 2011 19:45:37 +0000 (+0200) Subject: fixed crash in event_join X-Git-Tag: v5.3~365 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=a8d1517537b09b68618109b582a2933e032bb9a4;p=NeonServV5.git fixed crash in event_join --- diff --git a/event_neonserv_join.c b/event_neonserv_join.c index 6397e0b..b2ac486 100644 --- a/event_neonserv_join.c +++ b/event_neonserv_join.c @@ -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 } }