diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | 4a4c4a9ee13ee06c7a1803f313e9c2a48e017e75 (patch) | |
tree | 392ffb3b6c3bf8e455e7e963087cb834718169df /src/protocol/ratbox.c | |
parent | 8d6828fb8f84431c50914fa9161c46bdfa67a384 (diff) |
Added cmd_sgline() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1255 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 406d25d0b..ea51a22df 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -709,13 +709,10 @@ void ratbox_cmd_svsadmin(const char *server, int set) { } -void ratbox_cmd_sgline(const char *mask, const char *reason) +void RatboxProto::cmd_sgline(const char *mask, const char *reason) { - Uid *ud; - - ud = find_uid(s_OperServ); - send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ), - "XLINE * %s 0 :%s", mask, reason); + Uid *ud = find_uid(s_OperServ); + send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "XLINE * %s 0 :%s", mask, reason); } void RatboxProto::cmd_remove_akill(const char *user, const char *host) @@ -1535,7 +1532,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(ratbox_cmd_242); pmodule_cmd_243(ratbox_cmd_243); pmodule_cmd_211(ratbox_cmd_211); - pmodule_cmd_sgline(ratbox_cmd_sgline); pmodule_cmd_unban(ratbox_cmd_unban); pmodule_cmd_svsmode_chan(ratbox_cmd_svsmode_chan); pmodule_cmd_svid_umode(ratbox_cmd_svid_umode); |