summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.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/bahamut.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/bahamut.c')
-rw-r--r--src/protocol/bahamut.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index 0443f8250..d482c4628 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -1210,13 +1210,11 @@ void bahamut_cmd_211(const char *buf)
send_cmd(NULL, "211 %s", buf);
}
-void bahamut_cmd_nick(const char *nick, const char *name, const char *modes)
+void BahamutIRCdProto::cmd_nick(const char *nick, const char *name, const char *modes)
{
- EnforceQlinedNick(nick, NULL);
- send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick,
- (long int) time(NULL), modes, ServiceUser, ServiceHost,
- ServerName, name);
- bahamut_cmd_sqline(nick, "Reserved for services");
+ EnforceQlinedNick(nick, NULL);
+ send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick, static_cast<long>(time(NULL)), modes, ServiceUser, ServiceHost, ServerName, name);
+ bahamut_cmd_sqline(nick, "Reserved for services");
}
void bahamut_cmd_kick(const char *source, const char *chan, const char *user, const char *buf)
@@ -1546,7 +1544,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_372_error(bahamut_cmd_372_error);
pmodule_cmd_375(bahamut_cmd_375);
pmodule_cmd_376(bahamut_cmd_376);
- pmodule_cmd_nick(bahamut_cmd_nick);
pmodule_cmd_guest_nick(bahamut_cmd_guest_nick);
pmodule_cmd_mode(bahamut_cmd_mode);
pmodule_cmd_bot_nick(bahamut_cmd_bot_nick);