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/unreal32.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/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index f74e15b7e..e6b434a25 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -608,15 +608,12 @@ void UnrealIRCdProto::cmd_mode(const char *source, const char *dest, const char send_cmd(source, "%s %s %s", send_token("MODE", "G"), dest, buf); } -void unreal_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, - const char *modes) +void UnrealIRCdProto::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, "%s %s 1 %ld %s %s %s 0 %s %s%s :%s", - send_token("NICK", "&"), nick, (long int) time(NULL), user, - host, ServerName, modes, host, (myIrcd->nickip ? " *" : " "), - real); - unreal_cmd_sqline(nick, "Reserved for services"); + EnforceQlinedNick(nick, s_BotServ); + send_cmd(NULL, "%s %s 1 %ld %s %s %s 0 %s %s%s :%s", send_token("NICK", "&"), nick, static_cast<long>(time(NULL)), user, host, ServerName, modes, host, + myIrcd->nickip ? " *" : " ", real); + unreal_cmd_sqline(nick, "Reserved for services"); } void unreal_cmd_kick(const char *source, const char *chan, const char *user, const char *buf) @@ -2083,7 +2080,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(unreal_cmd_372_error); pmodule_cmd_375(unreal_cmd_375); pmodule_cmd_376(unreal_cmd_376); - pmodule_cmd_bot_nick(unreal_cmd_bot_nick); pmodule_cmd_kick(unreal_cmd_kick); pmodule_cmd_notice_ops(unreal_cmd_notice_ops); pmodule_cmd_notice(unreal_cmd_notice); |