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/ratbox.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/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 3b9f982aa..78be63723 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -173,9 +173,11 @@ class RatboxProto : public IRCDTS6Proto send_cmd(TS6SID, "OPERWALL :%s", buf); } - void SendSQLine(const char *mask, const char *reason) + void SendSQLine(const std::string &mask, const std::string &reason) { - send_cmd(TS6SID, "RESV * %s :%s", mask, reason); + if (mask.empty() || reason.empty()) + return; + send_cmd(TS6SID, "RESV * %s :%s", mask.c_str(), reason.c_str()); } void SendSGLineDel(SXLine *sx) |