From 8a6d053be91be238270fa7c3d9b96de149542b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Tue, 20 Aug 2019 21:22:30 +0200 Subject: Remove trailing / of fulljids if IRC host is missing --- src/bridge/bridge.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index 272b695..0356a84 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -999,8 +999,9 @@ 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() - + "/" + user->host; + + "@" + this->xmpp.get_served_hostname(); + if (user->host.empty()) + full_jid += "/" + user->host; this->xmpp.send_user_join(encoded_chan_name + utils::empty_if_fixed_server("%" + hostname), user->nick, full_jid, affiliation, role, -- cgit v1.2.3