JID class provides bare() and full() methods

This commit is contained in:
Florent Le Coz
2015-12-03 21:15:22 +01:00
parent 756b297045
commit 700a6c7bc3
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -394,7 +394,7 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
{ // Get biboumi's adhoc commands
this->send_adhoc_commands_list(id, from, this->served_hostname,
(Config::get("admin", "") ==
from_jid.local + "@" + from_jid.domain),
from_jid.bare()),
this->adhoc_commands_handler);
stanza_error.disable();
}
@@ -402,7 +402,7 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
{ // Get the server's adhoc commands
this->send_adhoc_commands_list(id, from, to_str,
(Config::get("admin", "") ==
from_jid.local + "@" + from_jid.domain),
from_jid.bare()),
this->irc_server_adhoc_commands_handler);
stanza_error.disable();
}