1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 02:23:12 +02:00

Internally ULine our server, and fixed a user count check for botserv when setting -P on channels

This commit is contained in:
Adam
2010-08-24 21:34:08 -04:00
parent 2803190255
commit ea9b945830
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -498,7 +498,7 @@ void Channel::RemoveModeInternal(ChannelMode *cm, const Anope::string &param, bo
if (ci)
{
ci->UnsetFlag(CI_PERSIST);
if (!Config->s_BotServ.empty() && ci->bi && this->FindUser(ci->bi))
if (!Config->s_BotServ.empty() && ci->bi && this->FindUser(ci->bi) && Config->BSMinUsers && this->users.size() <= Config->BSMinUsers)
this->ci->bi->Part(this);
}
}
+3
View File
@@ -269,6 +269,9 @@ bool Server::IsSynced() const
*/
bool Server::IsULined() const
{
if (this == Me)
return true;
for (std::list<Anope::string>::const_iterator it = Config->Ulines.begin(), it_end = Config->Ulines.end(); it != it_end; ++it)
if (it->equals_ci(this->GetName()))
return true;