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
commit7a167d97af6ef7e97c05488ae37c8f482173adb9 (patch)
tree6006339a603bf8d88c33c8c42811a1a63faac2f6 /src/protocol/bahamut.c
parent60b293b58edab6e6701f5b4911293a762fbbcf52 (diff)
Added cmd_guest_nick() function to IRCDProtoClass.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1217 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r--src/protocol/bahamut.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index d482c4628..7e41af3db 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -1316,11 +1316,9 @@ void bahamut_cmd_svsnick(const char *source, const char *guest, time_t when)
send_cmd(NULL, "SVSNICK %s %s :%ld", source, guest, (long int) when);
}
-void bahamut_cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real,
- const char *modes)
+void BahamutIRCdProto::cmd_guest_nick(const char *nick, const char *user, const char *host, const char *real, const char *modes)
{
- send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick,
- (long int) time(NULL), modes, user, host, ServerName, real);
+ send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s 0 0 :%s", nick, static_cast<long>(time(NULL)), modes, user, host, ServerName, real);
}
void bahamut_cmd_svso(const char *source, const char *nick, const char *flag)
@@ -1544,7 +1542,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_guest_nick(bahamut_cmd_guest_nick);
pmodule_cmd_mode(bahamut_cmd_mode);
pmodule_cmd_bot_nick(bahamut_cmd_bot_nick);
pmodule_cmd_kick(bahamut_cmd_kick);