diff options
| author | 2018-04-22 21:58:15 +0100 | |
|---|---|---|
| committer | 2018-04-22 22:38:49 +0100 | |
| commit | 35c8cde85996e9fe89920acb92a84c5d9bd6aeaf (patch) | |
| tree | abd9b0c8a0c2cf7b701cabf9513a815f7465813d /src/modules/m_censor.cpp | |
| parent | Release v3.0.0 alpha 7. (diff) | |
Fix some oversights relating to numerics.
- ERR_CANNOTSENDTOCHAN only takes the channel name and a message.
- ERR_INVALIDCAPCMD is 410 not 232.
Diffstat (limited to 'src/modules/m_censor.cpp')
| -rw-r--r-- | src/modules/m_censor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index 9044c90b1..fedc0f713 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -71,7 +71,7 @@ class ModuleCensor : public Module if (index->second.empty()) { const std::string targname = target.type == MessageTarget::TYPE_CHANNEL ? target.Get<Channel>()->name : target.Get<User>()->nick; - user->WriteNumeric(ERR_CANNOTSENDTOCHAN, targname, index->first.c_str(), "Your message contained a censored word, and was blocked"); + user->WriteNumeric(ERR_CANNOTSENDTOCHAN, targname, "Your message contained a censored word (" + index->first + "), and was blocked"); return MOD_RES_DENY; } |
