summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/plugins/relay/relay-client-irc.c7
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bc1e331a1..51f730681 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,7 @@ Version 0.3.5 (under dev!)
* irc: add many missing commands for target buffer (options irc.msgbuffer.xxx)
(bug #32216)
* lua: fix crash when many scripts are executing callbacks at same time
+* relay: do not send join for private buffers to client
* rmodifier: fix reload of file rmodifier.conf
* rmodifier: fix crash when adding rmodifier with invalid regex
* xfer: do not close chat buffers when removing xfer from list (bug #32271)
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);
}