diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
commit | cef2f72082b3ac4d8ebd5795e27fa986db422a33 (patch) | |
tree | cb26d0cf9943a740dcd909ba2616c35cde2846a5 /src/protocol/ratbox.c | |
parent | f9b628b0d37844e66a8d2acae797a81444df78ba (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/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 27e7ff3e1..9bb5df39c 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -781,14 +781,10 @@ void RatboxProto::cmd_remove_akill(const char *user, const char *host) send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "UNKLINE * %s %s", user, host); } -void ratbox_cmd_topic(const char *whosets, const char *chan, const char *whosetit, - const char *topic, time_t when) +void RatboxProto::cmd_topic(const char *whosets, const char *chan, const char *whosetit, const char *topic, time_t when) { - Uid *ud; - - ud = find_uid(whosets); - send_cmd((UseTS6 ? (ud ? ud->uid : whosets) : whosets), "TOPIC %s :%s", - chan, topic); + Uid *ud = find_uid(whosets); + send_cmd(UseTS6 ? (ud ? ud->uid : whosets) : whosets, "TOPIC %s :%s", chan, topic); } void ratbox_cmd_vhost_off(User * u) @@ -1728,7 +1724,6 @@ void ratbox_cmd_ctcp(const char *source, const char *dest, const char *buf) **/ void moduleAddAnopeCmds() { - pmodule_cmd_topic(ratbox_cmd_topic); pmodule_cmd_vhost_off(ratbox_cmd_vhost_off); pmodule_cmd_akill(ratbox_cmd_akill); pmodule_cmd_svskill(ratbox_cmd_svskill); |