diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-03-31 16:36:57 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-04-16 00:53:25 +0200 |
commit | 39a32d55248808637cee78b9218053306964f7aa (patch) | |
tree | c86950675a59c725b2ce04f0d22bd1ddccfa23aa /src/xmpp | |
parent | 5ef7ba08028065b03d51d1dc70bb35aeb41ae19d (diff) | |
download | biboumi-39a32d55248808637cee78b9218053306964f7aa.tar.gz biboumi-39a32d55248808637cee78b9218053306964f7aa.tar.bz2 biboumi-39a32d55248808637cee78b9218053306964f7aa.tar.xz biboumi-39a32d55248808637cee78b9218053306964f7aa.zip |
Use jid.bare() instead of manual concatenation
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/adhoc_commands_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/adhoc_commands_handler.cpp b/src/xmpp/adhoc_commands_handler.cpp index bb48781..60c85ae 100644 --- a/src/xmpp/adhoc_commands_handler.cpp +++ b/src/xmpp/adhoc_commands_handler.cpp @@ -41,7 +41,7 @@ XmlNode AdhocCommandsHandler::handle_request(const std::string& executor_jid, co XmlSubNode condition(error, STANZA_NS":item-not-found"); } else if (command_it->second.is_admin_only() && - Config::get("admin", "") != jid.local + "@" + jid.domain) + Config::get("admin", "") != jid.bare()) { XmlSubNode error(command_node, ADHOC_NS":error"); error["type"] = "cancel"; |