diff options
author | epochqwert <epoch@53flpnlls43fcguy.onion> | 2015-03-08 07:18:38 -0500 |
---|---|---|
committer | epochqwert <epoch@53flpnlls43fcguy.onion> | 2015-03-08 07:18:38 -0500 |
commit | ecb12efc5ce737532402167679c0f7ffb22c495b (patch) | |
tree | 529580999c00d45a66cf367e7c2b8d8f45f7614d /segfault.c | |
parent | ca97dc3913735ac0aed03974ada43aede82bec02 (diff) | |
download | segfault-ecb12efc5ce737532402167679c0f7ffb22c495b.tar.gz segfault-ecb12efc5ce737532402167679c0f7ffb22c495b.zip |
fixed support of optional : before channel name when parsing JOIN messages from server.
Diffstat (limited to 'segfault.c')
-rw-r--r-- | segfault.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |