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:10 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:10 +0000
commit60b293b58edab6e6701f5b4911293a762fbbcf52 (patch)
treeb271cba2a90259b6594cdc5a393246cced862a01 /src/protocol/unreal32.c
parent859826d14b7710585ccad3ad9e65089fa71c61e9 (diff)
Added cmd_nick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1216 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 10c4e8738..226aa3bf4 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -588,14 +588,12 @@ void unreal_cmd_376(const char *source)
send_cmd(ServerName, "376 %s :End of /MOTD command.", source);
}
-void unreal_cmd_nick(const char *nick, const char *name, const char *modes)
+void UnrealIRCdProto::cmd_nick(const char *nick, const char *name, const char *modes)
{
- EnforceQlinedNick(nick, NULL);
- send_cmd(NULL, "%s %s 1 %ld %s %s %s 0 %s %s%s :%s",
- send_token("NICK", "&"), nick, (long int) time(NULL),
- ServiceUser, ServiceHost, ServerName, modes, ServiceHost,
- (myIrcd->nickip ? " *" : " "), name);
- unreal_cmd_sqline(nick, "Reserved for services");
+ EnforceQlinedNick(nick, NULL);
+ send_cmd(NULL, "%s %s 1 %ld %s %s %s 0 %s %s%s :%s", send_token("NICK", "&"), nick, static_cast<long>(time(NULL)), ServiceUser, ServiceHost, ServerName, modes,
+ ServiceHost, myIrcd->nickip ? " *" : " ", name);
+ unreal_cmd_sqline(nick, "Reserved for services");
}
void unreal_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real,
@@ -2091,7 +2089,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_nick(unreal_cmd_nick);
pmodule_cmd_guest_nick(unreal_cmd_guest_nick);
pmodule_cmd_mode(unreal_cmd_mode);
pmodule_cmd_bot_nick(unreal_cmd_bot_nick);