From ecb12efc5ce737532402167679c0f7ffb22c495b Mon Sep 17 00:00:00 2001 From: epochqwert Date: Sun, 8 Mar 2015 07:18:38 -0500 Subject: fixed support of optional : before channel name when parsing JOIN messages from server. --- segfault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'segfault.c') 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) { -- cgit v1.2.3