Remove a bunch of useless empty lines
This commit is contained in:
@@ -458,7 +458,6 @@ void Bridge::leave_irc_channel(Iid&& iid, const std::string& status_message, con
|
|||||||
}
|
}
|
||||||
if (this->number_of_channels_the_resource_is_in(iid.get_server(), resource) == 0)
|
if (this->number_of_channels_the_resource_is_in(iid.get_server(), resource) == 0)
|
||||||
this->remove_resource_from_server(iid.get_server(), resource);
|
this->remove_resource_from_server(iid.get_server(), resource);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Bridge::send_irc_nick_change(const Iid& iid, const std::string& new_nick, const std::string& requesting_resource)
|
void Bridge::send_irc_nick_change(const Iid& iid, const std::string& new_nick, const std::string& requesting_resource)
|
||||||
@@ -900,9 +899,7 @@ void Bridge::send_muc_leave(const Iid& iid, const IrcUser& user,
|
|||||||
for (const auto& r: resources_in_chan)
|
for (const auto& r: resources_in_chan)
|
||||||
if (this->number_of_channels_the_resource_is_in(iid.get_server(), r) == 0)
|
if (this->number_of_channels_the_resource_is_in(iid.get_server(), r) == 0)
|
||||||
this->remove_resource_from_server(iid.get_server(), r);
|
this->remove_resource_from_server(iid.get_server(), r);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
IrcClient* irc = this->find_irc_client(iid.get_server());
|
IrcClient* irc = this->find_irc_client(iid.get_server());
|
||||||
if (self && irc && irc->number_of_joined_channels() == 0)
|
if (self && irc && irc->number_of_joined_channels() == 0)
|
||||||
|
|||||||
@@ -338,7 +338,6 @@ Transaction::Transaction()
|
|||||||
log_error("Failed to create SQL transaction: ", std::get<std::string>(result));
|
log_error("Failed to create SQL transaction: ", std::get<std::string>(result));
|
||||||
else
|
else
|
||||||
this->success = true;
|
this->success = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Transaction::~Transaction()
|
Transaction::~Transaction()
|
||||||
|
|||||||
@@ -502,7 +502,6 @@ void ConfigureIrcServerStep2(XmppComponent& xmpp_component, AdhocSession& sessio
|
|||||||
if (client)
|
if (client)
|
||||||
client->set_throttle_limit(options.col<Database::ThrottleLimit>());
|
client->set_throttle_limit(options.col<Database::ThrottleLimit>());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (field->get_tag("var") == "encoding_out" && value)
|
else if (field->get_tag("var") == "encoding_out" && value)
|
||||||
|
|||||||
@@ -359,7 +359,6 @@ void BiboumiComponent::handle_message(const Stanza& stanza)
|
|||||||
this->send_invitation_from_fulljid(std::to_string(iid), invite_to, from_str);
|
this->send_invitation_from_fulljid(std::to_string(iid), invite_to, from_str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (const IRCNotConnected& ex)
|
} catch (const IRCNotConnected& ex)
|
||||||
{
|
{
|
||||||
@@ -605,7 +604,6 @@ void BiboumiComponent::handle_iq(const Stanza& stanza)
|
|||||||
const XmlNode* max = set_node->get_child("max", RSM_NS);
|
const XmlNode* max = set_node->get_child("max", RSM_NS);
|
||||||
if (max)
|
if (max)
|
||||||
rs_info.max = std::atoi(max->get_inner().data());
|
rs_info.max = std::atoi(max->get_inner().data());
|
||||||
|
|
||||||
}
|
}
|
||||||
if (rs_info.max == -1)
|
if (rs_info.max == -1)
|
||||||
rs_info.max = 100;
|
rs_info.max = 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user