summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/notifylist
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-08-08 12:50:49 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-08-08 12:50:49 +0000
commitf124f07a4e9535bdaf4a7dd4674711f9bee6d487 (patch)
tree649728ec3adb7725eb160d8b3e4ddd81e20ca5fb /src/fe-common/irc/notifylist
parent055f314e31a789af092fe8c1def554c151044aa9 (diff)
downloadirssi-f124f07a4e9535bdaf4a7dd4674711f9bee6d487.zip
/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
Diffstat (limited to 'src/fe-common/irc/notifylist')
-rw-r--r--src/fe-common/irc/notifylist/fe-notifylist.c2
1 files changed, 1 insertions, 1 deletions
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);