Remove trailing / of fulljids if IRC host is missing
This commit is contained in:
@@ -999,8 +999,9 @@ void Bridge::send_user_join(const std::string& hostname, const std::string& chan
|
|||||||
|
|
||||||
std::string full_jid =
|
std::string full_jid =
|
||||||
encoded_nick_name + utils::empty_if_fixed_server("%" + hostname)
|
encoded_nick_name + utils::empty_if_fixed_server("%" + hostname)
|
||||||
+ "@" + this->xmpp.get_served_hostname()
|
+ "@" + this->xmpp.get_served_hostname();
|
||||||
+ "/" + user->host;
|
if (user->host.empty())
|
||||||
|
full_jid += "/" + user->host;
|
||||||
|
|
||||||
this->xmpp.send_user_join(encoded_chan_name + utils::empty_if_fixed_server("%" + hostname),
|
this->xmpp.send_user_join(encoded_chan_name + utils::empty_if_fixed_server("%" + hostname),
|
||||||
user->nick, full_jid, affiliation, role,
|
user->nick, full_jid, affiliation, role,
|
||||||
|
|||||||
Reference in New Issue
Block a user