From f124f07a4e9535bdaf4a7dd4674711f9bee6d487 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 8 Aug 2001 12:50:49 +0000 Subject: [PATCH] /NOTIFY printed '!' character after nick if mask was given. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1715 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/notifylist/fe-notifylist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/irc/notifylist/fe-notifylist.c b/src/fe-common/irc/notifylist/fe-notifylist.c index 0afff392..7253a042 100644 --- a/src/fe-common/irc/notifylist/fe-notifylist.c +++ b/src/fe-common/irc/notifylist/fe-notifylist.c @@ -44,7 +44,7 @@ static GSList *mask_add_once(GSList *list, const char *mask) ptr = strchr(mask, '!'); str = ptr == NULL ? g_strdup(mask) : - g_strndup(mask, (int) (ptr-mask)+1); + g_strndup(mask, (int) (ptr-mask)); if (gslist_find_icase_string(list, str) == NULL) return g_slist_append(list, str);