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 | d3a79969c2bced3f53ff440c40582a858632f900 (patch) | |
tree | eb3bcd8144cd376bcbb410da756be8debda900b0 /src/protocol/bahamut.c | |
parent | 00466f884cca8975972d0802999288da2c0b9fdf (diff) |
Added cmd_bot_nick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1219 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 102dde806..6aa5619f2 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -1283,13 +1283,11 @@ void bahamut_cmd_351(const char *source) } -void bahamut_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, - const char *modes) +void BahamutIRCdProto::cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes) { - EnforceQlinedNick(nick, s_BotServ); - send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick, - (long int) time(NULL), modes, user, host, ServerName, real); - bahamut_cmd_sqline(nick, "Reserved for services"); + EnforceQlinedNick(nick, s_BotServ); + send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick, static_cast<long>(time(NULL)), modes, user, host, ServerName, real); + bahamut_cmd_sqline(nick, "Reserved for services"); } /* SVSNICK */ @@ -1532,7 +1530,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(bahamut_cmd_372_error); pmodule_cmd_375(bahamut_cmd_375); pmodule_cmd_376(bahamut_cmd_376); - pmodule_cmd_bot_nick(bahamut_cmd_bot_nick); pmodule_cmd_kick(bahamut_cmd_kick); pmodule_cmd_notice_ops(bahamut_cmd_notice_ops); pmodule_cmd_notice(bahamut_cmd_notice); |