mirror of
https://github.com/anope/anope.git
synced 2026-07-07 01:23:13 +02:00
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
This commit is contained in:
@@ -265,9 +265,11 @@ class InspIRCdProto : public IRCDProto
|
||||
}
|
||||
|
||||
/* SQLINE */
|
||||
void SendSQLine(const char *mask, const char *reason)
|
||||
void SendSQLine(const std::string &mask, const std::string &reason)
|
||||
{
|
||||
send_cmd(TS6SID, "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(TS6SID, "ADDLINE Q %s %s %ld 0 :%s", mask.c_str(), Config.s_OperServ, static_cast<long>(time(NULL)), reason.c_str());
|
||||
}
|
||||
|
||||
/* SQUIT */
|
||||
|
||||
Reference in New Issue
Block a user