diff options
| author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
|---|---|---|
| committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:10 +0000 |
| commit | 24ae706b9cbeef0efc697c15df3fec3828e2bdc1 (patch) | |
| tree | 5937dbb9ed5b7b70c213891ae80a41833f337731 /src/protocol/bahamut.c | |
| parent | 3d4bf6d876f2ad537506cc2e3d0ef5d7051762e6 (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/bahamut.c')
| -rw-r--r-- | src/protocol/bahamut.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 5987cd9f0..0443f8250 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -828,11 +828,9 @@ void BahamutIRCdProto::cmd_svskill(const char *source, const char *user, const c * parv[3] - mode (or services id if old svs version) * parv[4] - optional arguement (services id) */ -void bahamut_cmd_svsmode(User * u, int ac, const char **av) +void BahamutIRCdProto::cmd_svsmode(User *u, int ac, const char **av) { - send_cmd(ServerName, "SVSMODE %s %ld %s%s%s", u->nick, - (long int) u->timestamp, av[0], (ac == 2 ? " " : ""), - (ac == 2 ? av[1] : "")); + send_cmd(ServerName, "SVSMODE %s %ld %s", u->nick, static_cast<long>(u->timestamp), merge_args(ac, av)); } /* SQUIT */ @@ -1544,7 +1542,6 @@ void bahamut_cmd_chghost(const char *nick, const char *vhost) **/ void moduleAddAnopeCmds() { - pmodule_cmd_svsmode(bahamut_cmd_svsmode); pmodule_cmd_372(bahamut_cmd_372); pmodule_cmd_372_error(bahamut_cmd_372_error); pmodule_cmd_375(bahamut_cmd_375); |
