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/bahamut.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/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index aee8b6f22..f00982d6b 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -167,9 +167,9 @@ class BahamutIRCdProto : public IRCDProto } /* SVSMODE -b */ - void SendBanDel(Channel *c, const char *nick) + void SendBanDel(Channel *c, const std::string &nick) { - SendSVSModeChan(c, "-b", nick); + SendSVSModeChan(c, "-b", nick.empty() ? NULL : nick.c_str()); } /* SVSMODE channel modes */ @@ -180,10 +180,11 @@ class BahamutIRCdProto : 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(NULL, "SQLINE %s :%s", mask, reason); + if (mask.empty() || reason.empty()) + return; + send_cmd(NULL, "SQLINE %s :%s", mask.c_str(), reason.c_str()); } /* UNSGLINE */ |