Trivial little syntax changes
This commit is contained in:
@@ -456,8 +456,8 @@ void Bridge::leave_irc_channel(Iid&& iid, const std::string& status_message, con
|
|||||||
true, true, resource, irc);
|
true, true, resource, irc);
|
||||||
this->remove_resource_from_chan(key, resource);
|
this->remove_resource_from_chan(key, resource);
|
||||||
}
|
}
|
||||||
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)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class Bridge;
|
|||||||
class IrcClient: public TCPClientSocketHandler
|
class IrcClient: public TCPClientSocketHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit IrcClient(std::shared_ptr<Poller>& poller, std::string hostname,
|
explicit IrcClient(std::shared_ptr<Poller>& poller, std::string hostname,
|
||||||
std::string nickname, std::string username,
|
std::string nickname, std::string username,
|
||||||
std::string realname, std::string user_hostname,
|
std::string realname, std::string user_hostname,
|
||||||
Bridge& bridge);
|
Bridge& bridge);
|
||||||
|
|||||||
@@ -102,8 +102,8 @@ void BiboumiComponent::shutdown()
|
|||||||
|
|
||||||
void BiboumiComponent::clean()
|
void BiboumiComponent::clean()
|
||||||
{
|
{
|
||||||
auto it = this->bridges.begin();
|
auto it = std::begin(this->bridges);
|
||||||
while (it != this->bridges.end())
|
while (it != std::end(this->bridges))
|
||||||
{
|
{
|
||||||
it->second->clean();
|
it->second->clean();
|
||||||
if (it->second->active_clients() == 0)
|
if (it->second->active_clients() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user