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 | c08993be094b5d0427985bee46e4d9d0d2ffbe56 (patch) | |
tree | c22c2b0cef6df836c93b6ba82f85f686dcd65bf4 /src/protocol/unreal32.c | |
parent | cef2f72082b3ac4d8ebd5795e27fa986db422a33 (diff) |
Added cmd_vhost_off() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1210 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r-- | src/protocol/unreal32.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index fb1ffab4c..fc2d1e4e6 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -522,17 +522,11 @@ void UnrealIRCdProto::cmd_topic(const char *whosets, const char *chan, const cha send_cmd(whosets, "%s %s %s %lu :%s", send_token("TOPIC", ")"), chan, whosetit, static_cast<unsigned long>(when), topic); } -void unreal_cmd_vhost_off(User * u) +void UnrealIRCdProto::cmd_vhost_off(User *u) { - if (UseSVS2MODE) { - send_cmd(s_HostServ, "%s %s -xt", send_token("SVS2MODE", "v"), - u->nick); - } else { - send_cmd(s_HostServ, "%s %s -xt", send_token("SVSMODE", "n"), - u->nick); - } - notice_lang(s_HostServ, u, HOST_OFF_UNREAL, u->nick, - myIrcd->vhostchar); + if (UseSVS2MODE) send_cmd(s_HostServ, "%s %s -xt", send_token("SVS2MODE", "v"), u->nick); + else send_cmd(s_HostServ, "%s %s -xt", send_token("SVSMODE", "n"), u->nick); + notice_lang(s_HostServ, u, HOST_OFF_UNREAL, u->nick, myIrcd->vhostchar); } void unreal_cmd_akill(const char *user, const char *host, const char *who, time_t when, @@ -2104,7 +2098,6 @@ void moduleAddIRCDMsgs(void) { **/ void moduleAddAnopeCmds() { - pmodule_cmd_vhost_off(unreal_cmd_vhost_off); pmodule_cmd_akill(unreal_cmd_akill); pmodule_cmd_svskill(unreal_cmd_svskill); pmodule_cmd_svsmode(unreal_cmd_svsmode); |