From 9cb6a0c2c927a857d502fd06212afac91a4f2079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Wed, 23 Sep 2020 23:38:46 +0200 Subject: =?UTF-8?q?Entirely=20remove=20the=20code=20for=20the=20=E2=80=9Cp?= =?UTF-8?q?referred=5Ffrom=E2=80=9D=20nick?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since private messages are now always coming from the server-wide JIDs --- src/bridge/bridge.hpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/bridge/bridge.hpp') diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 6b15478..a7aef3d 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -216,19 +216,6 @@ public: * Get the number of server to which this bridge is connected or connecting. */ size_t active_clients() const; - /** - * Add (or replace the existing) into the preferred_user_from map - */ - void set_preferred_from_jid(const std::string& nick, const std::string& full_jid); - /** - * Remove the preferred jid for the given IRC nick - */ - 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. */ @@ -283,14 +270,6 @@ private: * their sockets. */ std::shared_ptr poller; - /** - * A map of . For example if this map contains <"toto", - * "#somechan%server@biboumi/ToTo">, whenever a private message is - * received from the user "toto", instead of forwarding it to XMPP with - * from='toto!server@biboumi', we use instead - * from='#somechan%server@biboumi/ToTo' - */ - std::unordered_map preferred_user_from; /** * A list of callbacks that are waiting for some IrcMessage to trigger a * response. We add callbacks in this list whenever we received an IQ -- cgit v1.2.3