From b0364dc3b881e4b5e9afd1ff62d5b3cc792a87ca Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 8 May 2010 14:21:36 +0100 Subject: Also allow addressing people inside the control channel using a comma. --- irc_channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc_channel.c') 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; -- cgit v1.2.3