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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user