From 57caa0b53f53927c72811ffffda8bb527975860f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 27 Jun 2010 02:41:48 -0400 Subject: Made Anope track its own clients internally as if they were real users --- src/modules/cs_appendtopic.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/cs_appendtopic.cpp b/src/modules/cs_appendtopic.cpp index 40c1cd374..a1c84d0ab 100644 --- a/src/modules/cs_appendtopic.cpp +++ b/src/modules/cs_appendtopic.cpp @@ -98,17 +98,17 @@ class CommandCSAppendTopic : public Command Alog() << Config.s_ChanServ << ": " << u->GetMask() << " changed topic of " << c->name << " as services admin."; if (ircd->join2set) { - if (whosends(ci) == findbot(Config.s_ChanServ)) + if (whosends(ci) == ChanServ) { - ircdproto->SendJoin(findbot(Config.s_ChanServ), c->name.c_str(), c->creation_time); - ircdproto->SendMode(NULL, c, "+o %s", Config.s_ChanServ); + ChanServ->Join(c); + ircdproto->SendMode(NULL, c, "+o %s", Config.s_ChanServ); // XXX } } ircdproto->SendTopic(whosends(ci), c, u->nick.c_str(), topic); if (ircd->join2set) { - if (whosends(ci) == findbot(Config.s_ChanServ)) - ircdproto->SendPart(findbot(Config.s_ChanServ), c, NULL); + if (whosends(ci) == ChanServ) + ChanServ->Part(c); } } return MOD_CONT; -- cgit