1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 15:26:37 +02:00

core: fix click in item "buffer_nicklist" when nicklist is a root bar (bug #38080)

Argument "*" is now silently ignored in command /window.

When item "buffer_nicklist" is in a root bar, we use current window/buffer to
find which nick has been clicked (same behaviour as callback used to display bar
item "buffer_nicklist").
This commit is contained in:
Sebastien Helleu
2013-01-14 12:16:25 +01:00
parent f14f34e9af
commit e0deceb366
3 changed files with 21 additions and 10 deletions
+4
View File
@@ -5376,6 +5376,10 @@ COMMAND_CALLBACK(window)
return WEECHAT_RC_OK;
}
/* silently ignore argument "*" (can heppen when clicking in a root bar) */
if (strcmp (argv_eol[1], "*") == 0)
return WEECHAT_RC_OK;
/* refresh screen */
if (string_strcasecmp (argv[1], "refresh") == 0)
{