Limit the number of rooms sent by default in the disco#items response
fix #3219
This commit is contained in:
1 parent
595a4d6da8
commit
984d71838e
1 file changed
+2
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user