diff options
| author | 2016-08-17 12:49:48 +0200 | |
|---|---|---|
| committer | 2016-08-17 12:49:48 +0200 | |
| commit | b9e11915a976daaf790ebc763aff56e19fd49e0f (patch) | |
| tree | 7c69dc9427a8a0470ff12f772846b956e747bf78 /src/modules/m_censor.cpp | |
| parent | core_hostname_lookup: find answer record of the correct type instead of assum... (diff) | |
| parent | Release v2.0.22 (diff) | |
Merge insp20
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 7d8c74024..c8b6b73a8 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -79,7 +79,7 @@ class ModuleCensor : public Module { if (index->second.empty()) { - user->WriteNumeric(ERR_WORDFILTERED, ((Channel*)dest)->name, index->first, "Your message contained a censored word, and was blocked"); + user->WriteNumeric(ERR_WORDFILTERED, ((target_type == TYPE_CHANNEL) ? ((Channel*)dest)->name : ((User*)dest)->nick), index->first, "Your message contained a censored word, and was blocked"); return MOD_RES_DENY; } |
