diff options
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 */ |