diff options
Diffstat (limited to 'sircbot.c')
-rw-r--r-- | sircbot.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -206,6 +206,9 @@ int handle_response(struct irc_session *sess, char *user, char *cmd, char *data, } else if (strncmp(cmd, "JOIN", 4) == 0) { return join_channel(chan, numchan, data); } else if (strncmp(cmd, "KICK", 4) == 0) { + char *p = strchr(data, ' '); + if (p) + *p = '\0'; return kick_channel(chan, numchan, data); } else if (strncmp(cmd, "PRIVMSG", 7) == 0) { char *p = strchr(data, ' '); |