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 | b1b5df38eb70068c3dea2dad90285d54b6365e4b (patch) | |
tree | 36af49ed82a266410bd5f1c91dfa292ebaaafc8d /src/protocol/ratbox.c | |
parent | f8aff52e25d3464d2a21ef0527f30e5a7d6fab9b (diff) |
Added cmd_sqline() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1243 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 98aa5bbdd..3f798330a 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -693,13 +693,10 @@ void moduleAddIRCDMsgs(void) /* *INDENT-ON* */ -void ratbox_cmd_sqline(const char *mask, const char *reason) +void RatboxProto::cmd_sqline(const char *mask, const char *reason) { - Uid *ud; - - ud = find_uid(s_OperServ); - send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ), - "RESV * %s :%s", mask, reason); + Uid *ud = find_uid(s_OperServ); + send_cmd(UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ, "RESV * %s :%s", mask, reason); } void ratbox_cmd_unsgline(const char *mask) @@ -880,7 +877,7 @@ void RatboxProto::cmd_bot_nick(const char *nick, const char *user, const char *h new_uid(nick, uidbuf); } else send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s :%s", nick, static_cast<long>(time(NULL)), modes, user, host, ServerName, real); - ratbox_cmd_sqline(nick, "Reserved for services"); + cmd_sqline(nick, "Reserved for services"); } void RatboxProto::cmd_part(const char *nick, const char *chan, const char *buf) @@ -1231,7 +1228,7 @@ void RatboxProto::cmd_nick(const char *nick, const char *name, const char *mode) new_uid(nick, uidbuf); } else send_cmd(NULL, "NICK %s 1 %ld %s %s %s %s :%s", nick, static_cast<long>(time(NULL)), mode, ServiceUser, ServiceHost, ServerName, name); - ratbox_cmd_sqline(nick, "Reserved for services"); + cmd_sqline(nick, "Reserved for services"); } void RatboxProto::cmd_kick(const char *source, const char *chan, const char *user, const char *buf) @@ -1608,7 +1605,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(ratbox_cmd_242); pmodule_cmd_243(ratbox_cmd_243); pmodule_cmd_211(ratbox_cmd_211); - pmodule_cmd_sqline(ratbox_cmd_sqline); pmodule_cmd_squit(ratbox_cmd_squit); pmodule_cmd_svso(ratbox_cmd_svso); pmodule_cmd_chg_nick(ratbox_cmd_chg_nick); |