diff options
| author | 2016-02-25 16:12:09 +0100 | |
|---|---|---|
| committer | 2016-02-25 16:12:09 +0100 | |
| commit | da29af8cba49d51e53d6e68237ccbf6370b6dd1f (patch) | |
| tree | 5546764f28ff9457efa3a0f90ae6778953590293 /src/modules/m_mlock.cpp | |
| parent | Add Numeric::Numeric (diff) | |
Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters
Diffstat (limited to 'src/modules/m_mlock.cpp')
| -rw-r--r-- | src/modules/m_mlock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_mlock.cpp b/src/modules/m_mlock.cpp index 9b0fa8dab..d3ab5b9fd 100644 --- a/src/modules/m_mlock.cpp +++ b/src/modules/m_mlock.cpp @@ -50,8 +50,7 @@ class ModuleMLock : public Module std::string::size_type p = mlock_str->find(mode); if (p != std::string::npos) { - source->WriteNumeric(742, "%s %c %s :MODE cannot be set due to channel having an active MLOCK restriction policy", - channel->name.c_str(), mode, mlock_str->c_str()); + source->WriteNumeric(742, channel->name, mode, *mlock_str, "MODE cannot be set due to channel having an active MLOCK restriction policy"); return MOD_RES_DENY; } |
