summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-01-14 12:16:25 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-01-14 12:16:25 +0100
commite0deceb36661dfe01b57606b7decfb45fb4aa4d8 (patch)
tree003896b9f8bb7842e241859d8fb55f2a084ddd79 /src/core/wee-command.c
parentf14f34e9afe8a219cc08f7c86b12780e6adaf1a0 (diff)
downloadweechat-e0deceb36661dfe01b57606b7decfb45fb4aa4d8.zip
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").
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index d77632f0c..4fa359745 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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)
{