Possibility to change a channel's topic

This commit is contained in:
Florent Le Coz
2014-01-04 01:59:36 +01:00
parent e840704b58
commit fbec16f1a2
5 changed files with 17 additions and 0 deletions
+7
View File
@@ -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)
+1
View File
@@ -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);
/***
**