1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

Fix nick modes in input bar item for IRC plugin (do not display parenthesis when there's nothing to display inside)

This commit is contained in:
Sebastien Helleu
2008-10-10 15:00:17 +02:00
parent 80018210eb
commit 11b6aaebb9
+1 -1
View File
@@ -211,7 +211,7 @@ irc_bar_item_input_prompt (void *data, struct t_gui_bar_item *item,
buf = malloc (length);
if (buf)
{
if (server->nick_modes)
if (server->nick_modes && server->nick_modes[0])
{
snprintf (buf, length, "%s%s%s(%s%s%s)",
IRC_COLOR_INPUT_NICK,