diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 04:55:43 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-02 04:55:43 +0000 |
| commit | 3617d7978899f830d952d9bac70ed14bb0cc0fd6 (patch) | |
| tree | fa5fe5d8f8f3bd87f649e2467f60e1d87ba2a71c /src/protocol/inspircd11.c | |
| parent | 657e1deb590eaba38ea3e9a9fb353dc0e23c1a41 (diff) | |
Convert 'const char *' and 'char *' function arguments to 'const std::string &' instead, done in actions.c along with chain reactions in other files.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2723 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/inspircd11.c')
| -rw-r--r-- | src/protocol/inspircd11.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index cdeb58797..eb2718a7a 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -135,7 +135,7 @@ void inspircd_cmd_chghost(const char *nick, const char *vhost) return; send_cmd(Config.s_OperServ, "CHGHOST %s %s", nick, vhost); } - else + else ircdproto->SendGlobops(findbot(Config.s_OperServ), "CHGHOST not loaded!"); } @@ -260,10 +260,11 @@ class InspIRCdProto : public IRCDProto } /* SQLINE */ - void SendSQLine(const char *mask, const char *reason) + void SendSQLine(const std::string &mask, const std::string &reason) { - if (!mask || !reason) return; - send_cmd(Config.ServerName, "ADDLINE Q %s %s %ld 0 :%s", mask, Config.s_OperServ, static_cast<long>(time(NULL)), reason); + if (mask.empty() || reason.empty()) + return; + send_cmd(Config.ServerName, "ADDLINE Q %s %s %ld 0 :%s", mask.c_str(), Config.s_OperServ, static_cast<long>(time(NULL)), reason.c_str()); } /* SQUIT */ |
