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/bridge.cpp | |
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/bridge.cpp')
-rw-r--r-- | src/bridge/bridge.cpp | 7 |
1 files changed, 7 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) |