summaryrefslogtreecommitdiff
path: root/src/modules/cs_appendtopic.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-27 02:41:48 -0400
committerAdam <Adam@anope.org>2010-06-27 02:41:48 -0400
commit57caa0b53f53927c72811ffffda8bb527975860f (patch)
tree7fef9b12d2d86758acb9198001f88f072e8a31d6 /src/modules/cs_appendtopic.cpp
parentd49aee6cf88c79220eb785245257544c8051247f (diff)
Made Anope track its own clients internally as if they were real users
Diffstat (limited to 'src/modules/cs_appendtopic.cpp')
-rw-r--r--src/modules/cs_appendtopic.cpp10
1 files changed, 5 insertions, 5 deletions
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;