summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-04-03 19:49:36 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-04-03 19:49:36 +0200
commit09939a1b4b691fcc2fb74b99bf88e1f0f36ec142 (patch)
treee077b76e81526b7d32b1a1e236e6a8caf542a2e1
parent19d74e18a511e12972b4d7cb4920acfc76d3b509 (diff)
downloadweechat-09939a1b4b691fcc2fb74b99bf88e1f0f36ec142.zip
Fix display of empty nicklist in IRC private buffers
-rw-r--r--src/plugins/irc/irc-channel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index 92651e9ad..3b6a5480f 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -197,8 +197,11 @@ irc_channel_new (struct t_irc_server *server, int channel_type,
WEECHAT_HOOK_SIGNAL_POINTER, new_buffer);
if (weechat_config_boolean (irc_config_network_send_unknown_commands))
weechat_buffer_set (new_buffer, "input_get_unknown_commands", "1");
- weechat_buffer_set (new_buffer, "nicklist", "1");
- weechat_buffer_set (new_buffer, "nicklist_display_groups", "0");
+ if (channel_type == IRC_CHANNEL_TYPE_CHANNEL)
+ {
+ weechat_buffer_set (new_buffer, "nicklist", "1");
+ weechat_buffer_set (new_buffer, "nicklist_display_groups", "0");
+ }
/* set highlights settings on channel buffer */
weechat_buffer_set(new_buffer, "highlight_words_add", "$nick");