summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-09 22:04:54 +0200
committerlouiz’ <louiz@louiz.org>2019-09-09 22:04:54 +0200
commitf1936fdd082f104f278b292a7f11231f53c2a16b (patch)
tree01c8a1b304d94aa9ac985cbdc9b6d916eb0a5b70 /src/bridge/bridge.cpp
parent8a6d053be91be238270fa7c3d9b96de149542b3b (diff)
downloadbiboumi-f1936fdd082f104f278b292a7f11231f53c2a16b.tar.gz
biboumi-f1936fdd082f104f278b292a7f11231f53c2a16b.tar.bz2
biboumi-f1936fdd082f104f278b292a7f11231f53c2a16b.tar.xz
biboumi-f1936fdd082f104f278b292a7f11231f53c2a16b.zip
Actually fix that correctly instead of the opposite
Diffstat (limited to 'src/bridge/bridge.cpp')
-rw-r--r--src/bridge/bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 0356a84..71c0ea4 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -1000,7 +1000,7 @@ void Bridge::send_user_join(const std::string& hostname, const std::string& chan
std::string full_jid =
encoded_nick_name + utils::empty_if_fixed_server("%" + hostname)
+ "@" + this->xmpp.get_served_hostname();
- if (user->host.empty())
+ if (!user->host.empty())
full_jid += "/" + user->host;
this->xmpp.send_user_join(encoded_chan_name + utils::empty_if_fixed_server("%" + hostname),