aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-08 14:21:36 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-08 14:21:36 +0100
commitb0364dc3b881e4b5e9afd1ff62d5b3cc792a87ca (patch)
treefa12679cc30a2fe77d44b242f9c187dc0adb06b0 /irc_channel.c
parent9e27f1841b1160d3506a3c48701a661e86f2173b (diff)
Also allow addressing people inside the control channel using a comma.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc_channel.c b/irc_channel.c
index c8ee7a92..2ff00068 100644
--- a/irc_channel.c
+++ b/irc_channel.c
@@ -210,9 +210,9 @@ static gboolean control_channel_privmsg( irc_channel_t *ic, const char *msg )
const char *s;
/* Scan for non-whitespace chars followed by a colon: */
- for( s = msg; *s && !isspace( *s ) && *s != ':'; s ++ ) {}
+ for( s = msg; *s && !isspace( *s ) && *s != ':' && *s != ','; s ++ ) {}
- if( *s == ':' )
+ if( *s == ':' || *s == ',' )
{
char to[s-msg+1];
irc_user_t *iu;