summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commitcef2f72082b3ac4d8ebd5795e27fa986db422a33 (patch)
treecb26d0cf9943a740dcd909ba2616c35cde2846a5 /src/protocol/bahamut.c
parentf9b628b0d37844e66a8d2acae797a81444df78ba (diff)
Added cmd_topic() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1209 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r--src/protocol/bahamut.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 5a38312d5..59d48647a 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -768,11 +768,9 @@ void bahamut_cmd_part(const char *nick, const char *chan, const char *buf)
}
/* TOPIC */
-void bahamut_cmd_topic(const char *whosets, const char *chan, const char *whosetit,
- const char *topic, time_t when)
+void BahamutIRCdProto::cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when)
{
- send_cmd(whosets, "TOPIC %s %s %lu :%s", chan, whosetit,
- (unsigned long int) when, topic);
+ send_cmd(whosets, "TOPIC %s %s %lu :%s", chan, whosetit, static_cast<unsigned long>(when), topic);
}
/* UNSQLINE */
@@ -1554,7 +1552,6 @@ void bahamut_cmd_chghost(const char *nick, const char *vhost)
**/
void moduleAddAnopeCmds()
{
- pmodule_cmd_topic(bahamut_cmd_topic);
pmodule_cmd_vhost_off(bahamut_cmd_vhost_off);
pmodule_cmd_akill(bahamut_cmd_akill);
pmodule_cmd_svskill(bahamut_cmd_svskill);