From d2bc82e04d45bcafabc430e765fdfc8eb43d558e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 16 Dec 2006 21:14:54 +0000 Subject: Allow linefeeds in this module in one value git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6016 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_alias.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules') 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: -- cgit v1.2.3