diff options
author | Timo Sirainen <cras@irssi.org> | 2000-09-10 19:28:56 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-09-10 19:28:56 +0000 |
commit | 7a8000f1d2f91856f8c42f269287a310ef23943d (patch) | |
tree | 61c68eeabb9deee1ea73adc08488da74da72f0fe | |
parent | 2d16538decbb7838161922ede6881a9b9de568f2 (diff) | |
download | irssi-7a8000f1d2f91856f8c42f269287a310ef23943d.zip |
/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
-rw-r--r-- | src/irc/core/modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |