diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
| commit | 00466f884cca8975972d0802999288da2c0b9fdf (patch) | |
| tree | bc6a5351dc09820330d6b3429b654bf9377f06b7 /src/protocol/inspircd11.c | |
| parent | 7a167d97af6ef7e97c05488ae37c8f482173adb9 (diff) | |
Added cmd_mode() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1218 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd11.c')
| -rw-r--r-- | src/protocol/inspircd11.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index ea49c1ee4..5190de86d 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -615,15 +615,11 @@ void InspIRCdProto::cmd_guest_nick(const char *nick, const char *user, const cha send_cmd(ServerName, "NICK %ld %s %s %s %s +%s 0.0.0.0 :%s", static_cast<long>(time(NULL)), nick, host, host, user, modes, real); } -void inspircd_cmd_mode(const char *source, const char *dest, const char *buf) +void InspIRCdProto::cmd_mode(const char *source, const char *dest, const char *buf) { - Channel *c; - if (!buf) { - return; - } - - c = findchan(dest); - send_cmd(source ? source : s_OperServ, "FMODE %s %u %s", dest, (unsigned int)((c) ? c->creation_time : time(NULL)), buf); + if (!buf) return; + Channel *c = findchan(dest); + send_cmd(source ? source : s_OperServ, "FMODE %s %u %s", dest, static_cast<unsigned>(c ? c->creation_time : time(NULL)), buf); } int anope_event_version(const char *source, int ac, const char **av) @@ -1785,7 +1781,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(inspircd_cmd_372_error); pmodule_cmd_375(inspircd_cmd_375); pmodule_cmd_376(inspircd_cmd_376); - pmodule_cmd_mode(inspircd_cmd_mode); pmodule_cmd_bot_nick(inspircd_cmd_bot_nick); pmodule_cmd_kick(inspircd_cmd_kick); pmodule_cmd_notice_ops(inspircd_cmd_notice_ops); |
