diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-01-04 01:53:50 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-01-04 01:59:36 +0100 |
commit | fbec16f1a208881ea49923287aae27978d79681e (patch) | |
tree | aaa68a23a507e7f26899132865f65816315ce882 /src/bridge | |
parent | e840704b58a984351971e8034e74f5e9fdfaf114 (diff) | |
download | biboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.gz biboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.bz2 biboumi-fbec16f1a208881ea49923287aae27978d79681e.tar.xz biboumi-fbec16f1a208881ea49923287aae27978d79681e.zip |
Possibility to change a channel's topic
Diffstat (limited to 'src/bridge')
-rw-r--r-- | src/bridge/bridge.cpp | 7 | ||||
-rw-r--r-- | src/bridge/bridge.hpp | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index d034bcd..dae5a72 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -156,6 +156,13 @@ void Bridge::send_irc_kick(const Iid& iid, const std::string& target, const std: irc->send_kick_command(iid.chan, target, reason); } +void Bridge::set_channel_topic(const Iid& iid, const std::string& subject) +{ + IrcClient* irc = this->get_irc_client(iid.server); + if (irc) + irc->send_topic_command(iid.chan, subject); +} + void Bridge::send_message(const Iid& iid, const std::string& nick, const std::string& body, const bool muc) { if (muc) diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 7e881d9..75708e5 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -49,6 +49,7 @@ public: void leave_irc_channel(Iid&& iid, std::string&& status_message); void send_irc_nick_change(const Iid& iid, const std::string& new_nick); void send_irc_kick(const Iid& iid, const std::string& target, const std::string& reason); + void set_channel_topic(const Iid& iid, const std::string& subject); /*** ** |