diff options
| author | 2022-09-04 01:26:58 +0100 | |
|---|---|---|
| committer | 2022-09-04 01:26:58 +0100 | |
| commit | ef594e2f9e2be8d1b3f8e9be64efad8afee2a909 (patch) | |
| tree | afec34edcb97f47797cd117e1baeb4e1e9b82344 /src/modules/m_rline.cpp | |
| parent | Encourage people to submit patches for weird platforms. (diff) | |
| download | inspircd++-ef594e2f9e2be8d1b3f8e9be64efad8afee2a909.tar.gz inspircd++-ef594e2f9e2be8d1b3f8e9be64efad8afee2a909.tar.bz2 inspircd++-ef594e2f9e2be8d1b3f8e9be64efad8afee2a909.zip | |
Fix unnecessarily using c_str in parameters that take a std::string.
Diffstat (limited to 'src/modules/m_rline.cpp')
| -rw-r--r-- | src/modules/m_rline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index d8da60be6..0ee0ae022 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -72,7 +72,7 @@ class RLine : public XLine { if (ZlineOnMatch) { - ZLine* zl = new ZLine(ServerInstance->Time(), duration ? expiry - ServerInstance->Time() : 0, MODNAME "@" + ServerInstance->Config->ServerName, reason.c_str(), u->GetIPString()); + ZLine* zl = new ZLine(ServerInstance->Time(), duration ? expiry - ServerInstance->Time() : 0, MODNAME "@" + ServerInstance->Config->ServerName, reason, u->GetIPString()); if (ServerInstance->XLines->AddLine(zl, NULL)) { if (!duration) @@ -160,7 +160,7 @@ class CommandRLine : public Command try { - r = factory.Generate(ServerInstance->Time(), duration, user->nick.c_str(), parameters[2].c_str(), parameters[0].c_str()); + r = factory.Generate(ServerInstance->Time(), duration, user->nick, parameters[2], parameters[0]); } catch (ModuleException &e) { |
