1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Remove workaround no longer needed.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-04-11 21:27:12 +00:00 committed by exg
parent 0b9a3f4aef
commit 2aac604293

View File

@ -88,15 +88,9 @@ 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);
}
}
/* Add mode character to list sorted alphabetically */
static void mode_add_sorted(IRC_SERVER_REC *server, GString *str,