Don’t treat presence updates as MUC joins
If the user sends a directed presence to an unjoined MUC without a <x/> element, send a presence error back instead of attempting to join it again, as this is almost never what the user wants. Fixes #3415.
This commit is contained in:
committed by
louiz’
parent
440e04c6ba
commit
14fe971183
@@ -72,14 +72,12 @@ public:
|
||||
**/
|
||||
|
||||
/**
|
||||
* Try to join an irc_channel, does nothing and return true if the channel
|
||||
* was already joined.
|
||||
* Try to join an irc_channel.
|
||||
*/
|
||||
bool join_irc_channel(const Iid& iid, std::string nickname,
|
||||
const std::string& password,
|
||||
const std::string& resource,
|
||||
HistoryLimit history_limit,
|
||||
const bool force_join);
|
||||
HistoryLimit history_limit);
|
||||
|
||||
void send_channel_message(const Iid& iid, const std::string& body, std::string id);
|
||||
void send_private_message(const Iid& iid, const std::string& body, const std::string& type="PRIVMSG");
|
||||
|
||||
Reference in New Issue
Block a user