diff options
author | Debarshi Ray <rishi@gnu.org> | 2011-03-04 05:03:28 +0200 |
---|---|---|
committer | Olli Salli <olli.salli@collabora.co.uk> | 2011-03-04 12:21:41 +0200 |
commit | 72c31a3aee5272dae218a5f8bc39ab46cccd1013 (patch) | |
tree | f4b5bca7d1adc55fd01951d726f87fb7101b9c0a | |
parent | 9482584508a138162558fc454d4cae4db674898e (diff) |
IRC channels can have ! in their names, so don't truncate them
Fixes: https://bugs.freedesktop.org/28371
Reviewed-by: Olli Salli (oggis) <olli.salli@collabora.co.uk>
-rw-r--r-- | src/idle-parser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/idle-parser.c b/src/idle-parser.c index ba6c390..f61e7e7 100644 --- a/src/idle-parser.c +++ b/src/idle-parser.c @@ -461,10 +461,12 @@ static gboolean _parse_atom(IdleParser *parser, GValueArray *arr, char atom, con } id = g_strdup(token); - bang = strchr(id, '!'); - if (bang) - *bang = '\0'; + if (atom != 'r') { + bang = strchr(id, '!'); + if (bang) + *bang = '\0'; + } if (atom == 'r') { if ((handle = tp_handle_ensure(room_repo, id, NULL, NULL))) { |