From 959298b9c8334a54df9c99a14fbc26154f10a1d3 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 4 Mar 2011 05:03:28 +0200 Subject: [PATCH] IRC channels can have ! in their names, so don't truncate them Fixes: https://bugs.freedesktop.org/28371 --- 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 c3b1b52..42ffb83 100644 --- a/src/idle-parser.c +++ b/src/idle-parser.c @@ -462,10 +462,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))) { -- 1.7.4