Support raw IRC messages

Messages received on an IRC server JID are forwarded as raw IRC messages.

fix #2486
This commit is contained in:
Florent Le Coz
2015-05-07 17:01:17 +02:00
parent e24ed4f70c
commit 0a6b673b14
6 changed files with 37 additions and 0 deletions
+11
View File
@@ -273,6 +273,17 @@ void Bridge::send_private_message(const Iid& iid, const std::string& body, const
}
}
void Bridge::send_raw_message(const std::string& hostname, const std::string& body)
{
IrcClient* irc = this->get_irc_client(hostname);
if (!irc)
{
log_warning("Cannot send message: no client exist for server " << hostname);
return ;
}
irc->send_raw(body);
}
void Bridge::leave_irc_channel(Iid&& iid, std::string&& status_message)
{
IrcClient* irc = this->get_irc_client(iid.get_server());