From 7a8000f1d2f91856f8c42f269287a310ef23943d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 10 Sep 2000 19:28:56 +0000 Subject: [PATCH] /OP, /DEOP, etc. commands printed warning if no valid nicks were found. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@658 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 10227dcc..80381789 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -539,7 +539,7 @@ static char *get_nicks(IRC_CHANNEL_REC *channel, g_slist_free(nicks); } - g_string_truncate(str, str->len-1); + if (str->len > 0) g_string_truncate(str, str->len-1); ret = str->str; g_string_free(str, FALSE); return ret;