summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-06-04 17:37:16 +0100
committerPeter Powell <petpow@saberuk.com>2019-06-04 17:37:49 +0100
commit3b67b43f6a4ffbcc2dbc5bbed8abd537b92e9422 (patch)
tree95b03bedc375b06dd0d813dc88244d85b25ad820
parent97e03b761faf0e0e44665a83acc6079de255d8ed (diff)
Fix showing the anticaps channel name in ERR_CANNOTSENDTOCHAN.
Closes #1652.
-rw-r--r--src/modules/m_anticaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp
index 463ff809b..ef3c750ce 100644
--- a/src/modules/m_anticaps.cpp
+++ b/src/modules/m_anticaps.cpp
@@ -173,7 +173,7 @@ class ModuleAntiCaps : public Module
void InformUser(Channel* channel, User* user, const std::string& message)
{
- user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel, message + " and was blocked.");
+ user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel->name, message + " and was blocked.");
}
public: