Fix a little bit of style stuf from previous commit

This commit is contained in:
Florent Le Coz
2015-01-14 13:36:42 +01:00
parent e4fcbd3030
commit f9e259c266
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -339,8 +339,9 @@ void XmppComponent::handle_presence(const Stanza& stanza)
if (!own_nick.empty() && own_nick != to.resource)
bridge->send_irc_nick_change(iid, to.resource);
XmlNode* x = stanza.get_child("x", MUC_NS);
XmlNode* password = x? x->get_child("password", MUC_NS): NULL;
bridge->join_irc_channel(iid, to.resource, password? password->get_inner(): "");
XmlNode* password = x ? x->get_child("password", MUC_NS): nullptr;
bridge->join_irc_channel(iid, to.resource,
password ? password->get_inner() : "");
}
else if (type == "unavailable")
{