diff options
Diffstat (limited to 'src/chanserv.cpp')
| -rw-r--r-- | src/chanserv.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp index ff698d68f..3ca9694b3 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -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)) |
