diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-05-30 16:08:23 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-05-30 16:08:23 +0200 |
commit | c2311b2893f3db755b67c43e5ad60cef66b10ab2 (patch) | |
tree | c9f3199474597dbd0c1deb4b5f91144c5f4c4eb5 /src/bridge | |
parent | 5c9d2c23ba6a401bc9494a6023491bbf3ade8d34 (diff) | |
download | biboumi-c2311b2893f3db755b67c43e5ad60cef66b10ab2.tar.gz biboumi-c2311b2893f3db755b67c43e5ad60cef66b10ab2.tar.bz2 biboumi-c2311b2893f3db755b67c43e5ad60cef66b10ab2.tar.xz biboumi-c2311b2893f3db755b67c43e5ad60cef66b10ab2.zip |
Send (every 240s) a PING command to all connected irc servers
fix #2452
Diffstat (limited to 'src/bridge')
-rw-r--r-- | src/bridge/bridge.cpp | 5 | ||||
-rw-r--r-- | src/bridge/bridge.hpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index 70650a5..3377135 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -63,6 +63,11 @@ void Bridge::clean() } } +const std::string& Bridge::get_jid() const +{ + return this->user_jid; +} + Xmpp::body Bridge::make_xmpp_body(const std::string& str) { std::string res; diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 2618ca6..9c06947 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -32,6 +32,10 @@ public: * Remove all inactive IrcClients */ void clean(); + /** + * Return the jid of the XMPP user using this bridge + */ + const std::string& get_jid() const; static Xmpp::body make_xmpp_body(const std::string& str); /*** |