summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
commit54e65d003efff715a71088584443262d5655fb90 (patch)
treed3d9ea28be9ef1cac9c23936d4646de70821130e /src/protocol/unreal32.c
parente8cd183ed36a5014ddbd1a44dde8e311bb44f35a (diff)
Added cmd_chg_nick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1246 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 2b1c9ed3e..a00e9059d 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -884,14 +884,10 @@ void UnrealIRCdProto::cmd_svso(const char *source, const char *nick, const char
}
/* NICK <newnick> */
-void unreal_cmd_chg_nick(const char *oldnick, const char *newnick)
+void UnrealIRCdProto::cmd_chg_nick(const char *oldnick, const char *newnick)
{
- if (!oldnick || !newnick) {
- return;
- }
-
- send_cmd(oldnick, "%s %s %ld", send_token("NICK", "&"), newnick,
- (long int) time(NULL));
+ if (!oldnick || !newnick) return;
+ send_cmd(oldnick, "%s %s %ld", send_token("NICK", "&"), newnick, static_cast<long>(time(NULL)));
}
/* SVSNICK */
@@ -1976,7 +1972,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(unreal_cmd_242);
pmodule_cmd_243(unreal_cmd_243);
pmodule_cmd_211(unreal_cmd_211);
- pmodule_cmd_chg_nick(unreal_cmd_chg_nick);
pmodule_cmd_svsnick(unreal_cmd_svsnick);
pmodule_cmd_vhost_on(unreal_cmd_vhost_on);
pmodule_cmd_connect(unreal_cmd_connect);