summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 21:14:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 21:14:54 +0000
commitd2bc82e04d45bcafabc430e765fdfc8eb43d558e (patch)
tree888cbaa33adc9e36cc7045c343e63ce85e0ee1bc
parent26c01a67743c2d7340a396d8d71c9769a7f4b75c (diff)
Allow linefeeds in this module in one value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6016 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_alias.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index 804e9c5b5..7695b6f62 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -47,20 +47,18 @@ class ModuleAlias : public Module
ConfigReader MyConf(ServerInstance);
Aliases.clear();
-
for (int i = 0; i < MyConf.Enumerate("alias"); i++)
{
Alias a;
std::string txt;
txt = MyConf.ReadValue("alias", "text", i);
a.text = txt.c_str();
- a.replace_with = MyConf.ReadValue("alias", "replace", i);
+ a.replace_with = MyConf.ReadValue("alias", "replace", i, true);
a.requires = MyConf.ReadValue("alias", "requires", i);
a.uline = MyConf.ReadFlag("alias", "uline", i);
a.operonly = MyConf.ReadFlag("alias", "operonly", i);
Aliases.push_back(a);
}
-
}
public: