From 2aac604293378d143e140f7e80528eb6eeb8e31f Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 11 Apr 2008 21:27:12 +0000 Subject: [PATCH] Remove workaround no longer needed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/modes.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 94e3b6b1..994a55f3 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -88,14 +88,8 @@ static void mode_add_arg(GString *str, int pos, int updating, const char *arg) g_string_erase(str, pos, (int) (p-str->str)-pos); } - /* .. GLib shouldn't fail when inserting at the end of the string */ - if (pos == str->len) { - g_string_append_c(str, ' '); - g_string_append(str, arg); - } else { - g_string_insert_c(str, pos, ' '); - g_string_insert(str, pos+1, arg); - } + g_string_insert_c(str, pos, ' '); + g_string_insert(str, pos+1, arg); } /* Add mode character to list sorted alphabetically */