summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-07-22 11:26:11 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-07-22 12:26:11 +0200
commit4a12fc9d4bfb77fc2fc05c1052c66294e3774649 (patch)
treec24b738956fb7673c5703745b2775f4dc61e4277 /src/channels.cpp
parenta46d0c010d92a84574f175fc490538db93e7e860 (diff)
Add a method which calculates the maximum mask length. (#1171)
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 30bddec5c..7f2485a49 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -58,7 +58,7 @@ void Channel::SetTopic(User* u, const std::string& ntopic, time_t topicts, const
// Always update setter and set time
if (!setter)
setter = ServerInstance->Config->FullHostInTopic ? &u->GetFullHost() : &u->nick;
- this->setby.assign(*setter, 0, 128);
+ this->setby.assign(*setter, 0, ServerInstance->Config->Limits.GetMaxMask());
this->topicset = topicts;
FOREACH_MOD(OnPostTopicChange, (u, this, this->topic));