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
commit24ae706b9cbeef0efc697c15df3fec3828e2bdc1 (patch)
tree5937dbb9ed5b7b70c213891ae80a41833f337731 /src/protocol/unreal32.c
parent3d4bf6d876f2ad537506cc2e3d0ef5d7051762e6 (diff)
Added cmd_svsmode() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1214 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index 9d64c423d..10c4e8738 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -556,22 +556,13 @@ void UnrealIRCdProto::cmd_svskill(const char *source, const char *user, const ch
* parv[2] - modes to change
* parv[3] - Service Stamp (if mode == d)
*/
-void unreal_cmd_svsmode(User * u, int ac, const char **av)
+void UnrealIRCdProto::cmd_svsmode(User *u, int ac, const char **av)
{
- if (ac >= 1) {
- if (!u || !av[0]) {
- return;
- }
- if (UseSVS2MODE) {
- send_cmd(ServerName, "%s %s %s%s%s",
- send_token("SVS2MODE", "v"), u->nick, av[0],
- (ac == 2 ? " " : ""), (ac == 2 ? av[1] : ""));
- } else {
- send_cmd(ServerName, "%s %s %s%s%s",
- send_token("SVSMODE", "n"), u->nick, av[0],
- (ac == 2 ? " " : ""), (ac == 2 ? av[1] : ""));
- }
- }
+ if (ac >= 1) {
+ if (!u || !av[0]) return;
+ if (UseSVS2MODE) send_cmd(ServerName, "%s %s %s", send_token("SVS2MODE", "v"), u->nick, merge_args(ac, av));
+ else send_cmd(ServerName, "%s %s %s", send_token("SVSMODE", "n"), u->nick, merge_args(ac, av));
+ }
}
/* 372 */
@@ -2096,7 +2087,6 @@ void moduleAddIRCDMsgs(void) {
**/
void moduleAddAnopeCmds()
{
- pmodule_cmd_svsmode(unreal_cmd_svsmode);
pmodule_cmd_372(unreal_cmd_372);
pmodule_cmd_372_error(unreal_cmd_372_error);
pmodule_cmd_375(unreal_cmd_375);