summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.hpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-06-10 10:00:48 +0200
committerlouiz’ <louiz@louiz.org>2016-06-10 10:00:48 +0200
commit272c0e4995f2fe94fb2366c15453fdada341861a (patch)
treec1023991d62b9e4b0e798ba82bfdc25e00024724 /src/bridge/bridge.hpp
parent7540f6793342aeb1e9cec53208b347ca8a346c36 (diff)
downloadbiboumi-272c0e4995f2fe94fb2366c15453fdada341861a.tar.gz
biboumi-272c0e4995f2fe94fb2366c15453fdada341861a.tar.bz2
biboumi-272c0e4995f2fe94fb2366c15453fdada341861a.tar.xz
biboumi-272c0e4995f2fe94fb2366c15453fdada341861a.zip
Reset the preferred private JID when all resources leave a room
For example if we are talking in private with nick Joe from room #foo, and then we leave that room, we start receiving Joe’s message from the server-wide JID e2e tests included!!!
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r--src/bridge/bridge.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index eabd9af..01f8f78 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -186,6 +186,11 @@ public:
*/
void remove_preferred_from_jid(const std::string& nick);
/**
+ * Given a channel_name, remove all preferred from_jid that come
+ * from this chan.
+ */
+ void remove_all_preferred_from_jid_of_room(const std::string& channel_name);
+ /**
* Add a callback to the waiting list of irc callbacks.
*/
void add_waiting_irc(irc_responder_callback_t&& callback);