summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-05-08 23:01:21 +0200
committerlouiz’ <louiz@louiz.org>2017-05-08 23:01:21 +0200
commit984d71838ec98a94101804e48a4536c64d75602c (patch)
tree9defe770f0bd006a4ded4e3b846058b15d6f0688
parent595a4d6da87b4da6b6f11a55c2aaa27c490dc1d6 (diff)
downloadbiboumi-984d71838ec98a94101804e48a4536c64d75602c.tar.gz
biboumi-984d71838ec98a94101804e48a4536c64d75602c.tar.bz2
biboumi-984d71838ec98a94101804e48a4536c64d75602c.tar.xz
biboumi-984d71838ec98a94101804e48a4536c64d75602c.zip
Limit the number of rooms sent by default in the disco#items response
fix #3219
-rw-r--r--src/xmpp/biboumi_component.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index c808eec..ad34ace 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -503,6 +503,8 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
rs_info.max = std::atoi(max->get_inner().data());
}
+ if (rs_info.max == -1)
+ rs_info.max = 100;
bridge->send_irc_channel_list_request(iid, id, from, std::move(rs_info));
stanza_error.disable();
}