1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 09:43:13 +02:00

Made Anope track its own clients internally as if they were real users

This commit is contained in:
Adam
2010-06-27 02:41:48 -04:00
parent d49aee6cf8
commit 57caa0b53f
32 changed files with 254 additions and 242 deletions
+5 -5
View File
@@ -522,12 +522,12 @@ void restore_topic(const char *chan)
}
if (ircd->join2set && whosends(ci) == ChanServ)
{
ircdproto->SendJoin(ChanServ, chan, c->creation_time);
ChanServ->Join(chan);
c->SetMode(NULL, CMODE_OP, Config.s_ChanServ);
}
ircdproto->SendTopic(whosends(ci), c, c->topic_setter.c_str(), c->topic ? c->topic : "");
if (ircd->join2set && whosends(ci) == ChanServ)
ircdproto->SendPart(ChanServ, c, NULL);
ChanServ->Part(c);
}
/*************************************************************************/
@@ -583,14 +583,14 @@ int check_topiclock(Channel *c, time_t topic_time)
if (ircd->join2set && whosends(ci) == ChanServ)
{
ircdproto->SendJoin(ChanServ, c->name.c_str(), c->creation_time);
ChanServ->Join(c);
c->SetMode(NULL, CMODE_OP, Config.s_ChanServ);
}
ircdproto->SendTopic(whosends(ci), c, c->topic_setter.c_str(), c->topic ? c->topic : "");
if (ircd->join2set && whosends(ci) == ChanServ)
ircdproto->SendPart(ChanServ, c, NULL);
ChanServ->Part(c);
return 1;
}
@@ -1048,7 +1048,7 @@ void ChanServTimer::Tick(time_t)
if (!c->users.empty())
return;
ircdproto->SendPart(ChanServ, c, NULL);
ChanServ->Part(c);
/* Now delete the channel as it is empty */
if (!c->HasFlag(CH_PERSIST) && !c->ci->HasFlag(CI_PERSIST))