mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
0b9a3f4aef
commit
2aac604293
@ -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);
|
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_c(str, pos, ' ');
|
||||||
g_string_insert(str, pos+1, arg);
|
g_string_insert(str, pos+1, arg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* Add mode character to list sorted alphabetically */
|
/* Add mode character to list sorted alphabetically */
|
||||||
static void mode_add_sorted(IRC_SERVER_REC *server, GString *str,
|
static void mode_add_sorted(IRC_SERVER_REC *server, GString *str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user