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

relay: do not send join for private buffers to client

This commit is contained in:
Sebastien Helleu
2011-03-01 17:44:15 +01:00
parent 6f047c4a05
commit bf2f7d33ef
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -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);
}