projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c813627
)
fixed crash in event_join
author
pk910
<philipp@zoelle1.de>
Sat, 24 Sep 2011 19:45:37 +0000
(21:45 +0200)
committer
pk910
<philipp@zoelle1.de>
Sat, 24 Sep 2011 19:45:37 +0000
(21:45 +0200)
event_neonserv_join.c
patch
|
blob
|
history
diff --git
a/event_neonserv_join.c
b/event_neonserv_join.c
index 6397e0bf0782eedc5636d2be9ae9477257ceb631..b2ac486925eb83bce7acbf119951abdf5db86206 100644
(file)
--- 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
}
}