diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-04-11 21:27:12 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-04-11 21:27:12 +0000 |
commit | 2aac604293378d143e140f7e80528eb6eeb8e31f (patch) | |
tree | 4aef8618df5f951afa16c03a6c8d459185ce4672 /src | |
parent | 0b9a3f4aef00a8a20ed6d64569e5eca96ff3379e (diff) | |
download | irssi-2aac604293378d143e140f7e80528eb6eeb8e31f.zip |
Remove workaround no longer needed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4803 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/modes.c | 10 |
1 files 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 */ |