1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 14:06:39 +02:00

Added os_forbid

This commit is contained in:
Adam
2011-05-06 18:02:53 -04:00
parent b59602abf8
commit fd4b52ec38
66 changed files with 586 additions and 702 deletions
+5 -6
View File
@@ -367,10 +367,9 @@ Anope::string get_xop_level(int level)
ChanServTimer::ChanServTimer(Channel *chan) : Timer(Config->CSInhabit), c(chan)
{
if (!chanserv)
if (!chanserv || !c)
return;
if (c->ci)
c->ci->SetFlag(CI_INHABIT);
c->SetFlag(CH_INHABIT);
if (!c->ci || !c->ci->bi)
chanserv->Bot()->Join(c);
else if (!c->FindUser(c->ci->bi))
@@ -379,12 +378,12 @@ ChanServTimer::ChanServTimer(Channel *chan) : Timer(Config->CSInhabit), c(chan)
void ChanServTimer::Tick(time_t)
{
if (!c || !c->ci)
if (!c)
return;
c->ci->UnsetFlag(CI_INHABIT);
c->UnsetFlag(CH_INHABIT);
if (!c->ci->bi)
if (!c->ci || !c->ci->bi)
{
if (chanserv)
chanserv->Bot()->Part(c);