summaryrefslogtreecommitdiff
path: root/segfault.c
diff options
context:
space:
mode:
Diffstat (limited to 'segfault.c')
-rw-r--r--segfault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/segfault.c b/segfault.c
index 2706543..8013e0b 100644
--- a/segfault.c
+++ b/segfault.c
@@ -1129,7 +1129,7 @@ void line_handler(int fd,char *line) {//this should be built into the libary?
}
if(s && user->nick && t) {
if(!strcmp(s,"JOIN")) {
- irc_mode(fd,t+1,"+o",user->nick);//why t+1? it starts with :?
+ irc_mode(fd,t+(*t==':'),"+o",user->nick);//sometimes t will start with a : This check should go into the parser up there.
}
if(!strcmp(s,"MODE") && mode_magic) {
if(u) {