summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 2fb38107b..d14f1089f 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -452,6 +452,7 @@ Conf::Conf() : Block("")
CommandInfo &c = this->Fantasy[nname];
c.name = service;
+ c.cname = nname;
c.permission = permission;
c.group = group;
c.hide = hide;
@@ -535,9 +536,13 @@ Conf::Conf() : Block("")
regex_flags = std::regex::grep;
else if (regex_engine == "egrep")
regex_flags = std::regex::egrep;
+ else
+ regex_flags = static_cast<std::basic_regex<char>::flag_type>(0);
/* always enable icase and optimize */
if (regex_flags)
regex_flags |= std::regex::icase | std::regex::optimize;
+
+ this->LineWrap = options->Get<unsigned>("linewrap", "200");
}
Conf::~Conf()