summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-07-30 10:20:19 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-07-30 10:20:19 +0200
commit5059743dd284d0a5f2e0d9257a97984b5a3363f5 (patch)
tree61ad0ba58087b7affcdcd721040d7ba9750cf29b /src/plugins/irc
parent382a1ad942cf362f4925eac595210b351080c2f8 (diff)
downloadweechat-5059743dd284d0a5f2e0d9257a97984b5a3363f5.zip
irc: add "server" and "channel" in hook_focus of bar item "buffer_nicklist"
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-bar-item.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c
index 89b50392c..61c5b461f 100644
--- a/src/plugins/irc/irc-bar-item.c
+++ b/src/plugins/irc/irc-bar-item.c
@@ -518,7 +518,7 @@ irc_bar_item_focus_buffer_nicklist (void *data,
/* make C compiler happy */
(void) data;
- if (ptr_channel)
+ if (ptr_server && ptr_channel)
{
nick = weechat_hashtable_get (info, "nick");
if (nick)
@@ -527,9 +527,11 @@ irc_bar_item_focus_buffer_nicklist (void *data,
if (ptr_nick && ptr_nick->host)
{
weechat_hashtable_set (info, "host", ptr_nick->host);
- return info;
}
}
+ weechat_hashtable_set (info, "server", ptr_server->name);
+ weechat_hashtable_set (info, "channel", ptr_channel->name);
+ return info;
}
return NULL;