diff options
-rw-r--r-- | include/extern.h | 1 | ||||
-rw-r--r-- | src/chanserv.c | 4 | ||||
-rw-r--r-- | src/core/cs_topic.c | 6 | ||||
-rw-r--r-- | src/ircd.c | 6 | ||||
-rw-r--r-- | src/modules/cs_appendtopic.c | 12 |
5 files changed, 11 insertions, 18 deletions
diff --git a/include/extern.h b/include/extern.h index ca985eb60..ae80b3c38 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1164,7 +1164,6 @@ E void anope_SendForceNickChange(const char *nick,const char *newnick, time_t wh E void anope_SendSVSO(const char *source,const char *nick, const char *flag); /* SVSO */ E void anope_SendSVSPart(const char *source, const char *nick,const char *chan); /* SVSPART */ E void anope_SendSWhois(const char *source, const char *who, const char *mask); /* SWHOIS */ -E void anope_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when); /* TOPIC */ E void anope_SendSGLineDel(const char *mask); /* UNSGLINE */ E void anope_SendSQLineDel(const char *user); /* UNSQLINE */ E void anope_SendSZLineDel(const char *mask); /* UNSZLINE */ diff --git a/src/chanserv.c b/src/chanserv.c index b325bf6a6..1c86a73e1 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -1452,7 +1452,7 @@ void restore_topic(const char *chan) anope_SendMode(NULL, chan, "+o %s", s_ChanServ); } } - anope_cmd_topic(whosends(ci)->nick, c->name, c->topic_setter, + ircdproto->SendTopic(whosends(ci)->nick, c->name, c->topic_setter, c->topic ? c->topic : "", c->topic_time); if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { @@ -1515,7 +1515,7 @@ int check_topiclock(Channel * c, time_t topic_time) } } - anope_cmd_topic(whosends(ci)->nick, c->name, c->topic_setter, + ircdproto->SendTopic(whosends(ci)->nick, c->name, c->topic_setter, c->topic ? c->topic : "", c->topic_time); if (ircd->join2set) { diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c index a8c9533a7..7d3ae40c1 100644 --- a/src/core/cs_topic.c +++ b/src/core/cs_topic.c @@ -6,8 +6,8 @@ * Please read COPYING and README for further details. * * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - * + * Based on the original code of Services by Andy Church. + * * $Id$ * */ @@ -107,7 +107,7 @@ int do_cs_topic(User * u) anope_SendMode(NULL, c->name, "+o %s", s_ChanServ); } } - anope_cmd_topic(whosends(ci), c->name, u->nick, topic ? topic : "", + ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic ? topic : "", c->topic_time); if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { diff --git a/src/ircd.c b/src/ircd.c index e82461cf2..5894b86c4 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -43,12 +43,6 @@ void anope_ProcessUsermodes(User *user, int ac, const char **av) ircdproto->ProcessUsermodes(user, ac, av); } -void anope_cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when) -{ - BotInfo *bi = findbot(whosets); - ircdproto->SendTopic(bi, chan, whosetit, topic, when); -} - void anope_SendVhostDel(User *u) { ircdproto->SendVhostDel(u); diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c index 665782c73..08a6e19f2 100644 --- a/src/modules/cs_appendtopic.c +++ b/src/modules/cs_appendtopic.c @@ -26,15 +26,15 @@ * Author: SGR <Alex_SGR@ntlworld.com> * Date: 31/08/2003 * ------------------------------------------------------------ - * + * * This module has no configurable options. For information on * this module, load it and refer to /ChanServ APPENDTOPIC HELP - * - * Thanks to dengel, Rob and Certus for all there support. - * Especially Rob, who always manages to show me where I have + * + * Thanks to dengel, Rob and Certus for all there support. + * Especially Rob, who always manages to show me where I have * not allocated any memory. Even if it takes a few weeks of * pestering to get him to look at it. - * + * * ------------------------------------------------------------ */ @@ -151,7 +151,7 @@ int my_cs_appendtopic(User * u) anope_SendMode(NULL, c->name, "+o %s", s_ChanServ); } } - anope_cmd_topic(whosends(ci), c->name, u->nick, topic, c->topic_time); + ircdproto->SendTopic(whosends(ci), c->name, u->nick, topic, c->topic_time); if (ircd->join2set) { if (whosends(ci) == s_ChanServ) { anope_SendPart(s_ChanServ, c->name, NULL); |