summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r--src/protocol/ratbox.c6
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)