summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-03-01 17:44:15 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-03-01 17:44:15 +0100
commitbf2f7d33ef7c906142a839ad97bb81d8f13b0c6f (patch)
treeedadf7cbb61897335f42466d9bc3789d058e1a2a /src
parent6f047c4a05a78433132fff5d5caf6954368487fd (diff)
downloadweechat-bf2f7d33ef7c906142a839ad97bb81d8f13b0c6f.zip
relay: do not send join for private buffers to client
Diffstat (limited to 'src')
-rw-r--r--src/plugins/relay/relay-client-irc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/relay/relay-client-irc.c b/src/plugins/relay/relay-client-irc.c
index a52d6912d..eaab3408e 100644
--- a/src/plugins/relay/relay-client-irc.c
+++ b/src/plugins/relay/relay-client-irc.c
@@ -564,8 +564,11 @@ relay_client_irc_send_join_channels (struct t_relay_client *client)
{
while (weechat_infolist_next (infolist_channels))
{
- channel = weechat_infolist_string (infolist_channels, "name");
- relay_client_irc_send_join (client, channel);
+ if (weechat_infolist_integer (infolist_channels, "nicks_count") > 0)
+ {
+ channel = weechat_infolist_string (infolist_channels, "name");
+ relay_client_irc_send_join (client, channel);
+ }
}
weechat_infolist_free (infolist_channels);
}