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:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commit6ae0b4e597e18857b2f96de49c947e47f101d80b (patch)
treefa5fe49a2ee9d5665dcfec479be2cd4f750b0889 /src/protocol/unreal32.c
parent0e794a9e50cdf3b38a6c21936cc331bc7a50518c (diff)
Added cmd_join() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1238 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index d1104d445..d68a7184d 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -697,12 +697,10 @@ void unreal_cmd_server(const char *servname, int hop, const char *descript)
}
/* JOIN */
-void unreal_cmd_join(const char *user, const char *channel, time_t chantime)
+void UnrealIRCdProto::cmd_join(const char *user, const char *channel, time_t chantime)
{
- send_cmd(ServerName, "%s !%s %s :%s",
- send_token("SJOIN", "~"), base64enc((long int) chantime),
- channel, user);
- /* send_cmd(user, "%s %s", send_token("JOIN", "C"), channel); */
+ send_cmd(ServerName, "%s !%s %s :%s", send_token("SJOIN", "~"), base64enc(static_cast<long>(chantime)), channel, user);
+ /* send_cmd(user, "%s %s", send_token("JOIN", "C"), channel); */
}
/* unsqline
@@ -2020,7 +2018,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_375(unreal_cmd_375);
pmodule_cmd_376(unreal_cmd_376);
pmodule_cmd_351(unreal_cmd_351);
- pmodule_cmd_join(unreal_cmd_join);
pmodule_cmd_unsqline(unreal_cmd_unsqline);
pmodule_cmd_invite(unreal_cmd_invite);
pmodule_cmd_part(unreal_cmd_part);