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/ratbox.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/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index b4a9c4b9a..404db2ad3 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -918,22 +918,16 @@ void ratbox_cmd_connect(int servernum) ratbox_cmd_svinfo(); } -void ratbox_cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, - const char *modes) +void RatboxProto::cmd_bot_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes) { - EnforceQlinedNick(nick, NULL); - if (UseTS6) { + 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); - } - ratbox_cmd_sqline(nick, "Reserved for services"); + 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); + ratbox_cmd_sqline(nick, "Reserved for services"); } void ratbox_cmd_part(const char *nick, const char *chan, const char *buf) @@ -1688,7 +1682,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(ratbox_cmd_372_error); pmodule_cmd_375(ratbox_cmd_375); pmodule_cmd_376(ratbox_cmd_376); - pmodule_cmd_bot_nick(ratbox_cmd_bot_nick); pmodule_cmd_kick(ratbox_cmd_kick); pmodule_cmd_notice_ops(ratbox_cmd_notice_ops); pmodule_cmd_notice(ratbox_cmd_notice); |