Delete empty bridges objects
This commit is contained in:
@@ -249,6 +249,11 @@ std::string Bridge::get_own_nick(const Iid& iid)
|
||||
return "";
|
||||
}
|
||||
|
||||
size_t Bridge::connected_clients() const
|
||||
{
|
||||
return this->irc_clients.size();
|
||||
}
|
||||
|
||||
void Bridge::kick_muc_user(Iid&& iid, const std::string& target, const std::string& reason, const std::string& author)
|
||||
{
|
||||
this->xmpp->kick_user(iid.chan + "%" + iid.server, target, reason, author, this->user_jid);
|
||||
|
||||
@@ -104,6 +104,10 @@ public:
|
||||
* Misc
|
||||
*/
|
||||
std::string get_own_nick(const Iid& iid);
|
||||
/**
|
||||
* Get the number of server to which this bridge is connected.
|
||||
*/
|
||||
size_t connected_clients() const;
|
||||
|
||||
private:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user