summaryrefslogtreecommitdiff
path: root/segfault.c
diff options
context:
space:
mode:
authorepochqwert <epoch@53flpnlls43fcguy.onion>2015-03-08 07:18:38 -0500
committerepochqwert <epoch@53flpnlls43fcguy.onion>2015-03-08 07:18:38 -0500
commitecb12efc5ce737532402167679c0f7ffb22c495b (patch)
tree529580999c00d45a66cf367e7c2b8d8f45f7614d /segfault.c
parentca97dc3913735ac0aed03974ada43aede82bec02 (diff)
downloadsegfault-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.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) {