diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-05-07 17:01:17 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-05-07 17:01:17 +0200 |
commit | 0a6b673b14efc4f623ea445045e6fc60e9842a25 (patch) | |
tree | 88fef4dced68ef3c616fe1575d5c542b0474b56a /src/xmpp | |
parent | e24ed4f70c22142029fa8e6cf5b874e8bc261bc3 (diff) | |
download | biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.gz biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.bz2 biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.tar.xz biboumi-0a6b673b14efc4f623ea445045e6fc60e9842a25.zip |
Support raw IRC messages
Messages received on an IRC server JID are forwarded as raw IRC messages.
fix #2486
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index ba8cb49..37383a8 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -211,6 +211,11 @@ void BiboumiComponent::handle_message(const Stanza& stanza) bridge->send_private_message(user_iid, body->get_inner()); bridge->set_preferred_from_jid(user_iid.get_local(), to_str); } + else if (!iid.is_user && !iid.is_channel) + { // Message sent to the server JID + // Convert the message body into a raw IRC message + bridge->send_raw_message(iid.get_server(), body->get_inner()); + } } } else if (iid.is_user) |