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/charybdis.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/charybdis.c')
-rw-r--r-- | src/protocol/charybdis.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/src/protocol/charybdis.c b/src/protocol/charybdis.c index ac701a3f6..f3419ef47 100644 --- a/src/protocol/charybdis.c +++ b/src/protocol/charybdis.c @@ -978,22 +978,16 @@ void charybdis_cmd_connect(int servernum) charybdis_cmd_svinfo(); } -void charybdis_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, - const char *modes) +void CharybdisProto::cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes) { - EnforceQlinedNick(nick, NULL); - if (UseTS6) { - char *uidbuf = ts6_uid_retrieve(); - send_cmd(TS6SID, "UID %s 1 %ld %s %s %s 0 %s :%s", nick, - (long int) time(NULL), modes, user, host, uidbuf, - real); - new_uid(nick, uidbuf); - } else { - send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s :%s", nick, - (long int) time(NULL), modes, user, host, ServerName, - real); - } - charybdis_cmd_sqline(nick, "Reserved for services"); + EnforceQlinedNick(nick, NULL); + if (UseTS6) { + char *uidbuf = ts6_uid_retrieve(); + send_cmd(TS6SID, "UID %s 1 %ld %s %s %s 0 %s :%s", nick, static_cast<long>(time(NULL)), modes, user, host, uidbuf, real); + new_uid(nick, uidbuf); + } + else send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s :%s", nick, static_cast<long>(time(NULL)), modes, user, host, ServerName, real); + charybdis_cmd_sqline(nick, "Reserved for services"); } void charybdis_cmd_part(const char *nick, const char *chan, const char *buf) @@ -1796,7 +1790,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(charybdis_cmd_372_error); pmodule_cmd_375(charybdis_cmd_375); pmodule_cmd_376(charybdis_cmd_376); - pmodule_cmd_bot_nick(charybdis_cmd_bot_nick); pmodule_cmd_kick(charybdis_cmd_kick); pmodule_cmd_notice_ops(charybdis_cmd_notice_ops); pmodule_cmd_notice(charybdis_cmd_notice); |