summaryrefslogtreecommitdiff
path: root/src/modules/m_alias.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-17 01:34:25 +0100
committerPeter Powell <petpow@saberuk.com>2013-06-06 00:41:07 +0100
commit047e29179766076146e7bd6126a883f4f3c95150 (patch)
treee3a5d78b9aaf4631ce0bbd6b46704ff00e8bb5a3 /src/modules/m_alias.cpp
parent7dfcffd6853547eb2e73d161916d5a289069baf2 (diff)
Reserve ServerLimits::MaxLine instead of MAXBUF.
Diffstat (limited to 'src/modules/m_alias.cpp')
-rw-r--r--src/modules/m_alias.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 118cedeea..7e15b8c04 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -309,7 +309,7 @@ class ModuleAlias : public Module
void DoCommand(const std::string& newline, User* user, Channel *chan, const std::string &original_line)
{
std::string result;
- result.reserve(MAXBUF);
+ result.reserve(ServerInstance->Config->Limits.MaxLine);
for (unsigned int i = 0; i < newline.length(); i++)
{
char c = newline[i];