diff options
Diffstat (limited to 'modules/commands/os_list.cpp')
-rw-r--r-- | modules/commands/os_list.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/commands/os_list.cpp b/modules/commands/os_list.cpp index e8092cb4d..6692f52fd 100644 --- a/modules/commands/os_list.cpp +++ b/modules/commands/os_list.cpp @@ -103,11 +103,12 @@ class CommandOSChanList : public Command "specified, lists only channels matching \002pattern\002 that have the +s or\n" "+p mode.")); - if (!Config->RegexEngine.empty()) + const Anope::string ®exengine = Config->GetBlock("options")->Get<const Anope::string &>("regexengine"); + if (!regexengine.empty()) { source.Reply(" "); source.Reply(_("Regex matches are also supported using the %s engine.\n" - "Enclose your pattern in // if this is desired."), Config->RegexEngine.c_str()); + "Enclose your pattern in // if this is desired."), regexengine.c_str()); } return true; @@ -208,11 +209,12 @@ class CommandOSUserList : public Command "that are on the given channel. If INVISIBLE is specified, only users\n" "with the +i flag will be listed.")); - if (!Config->RegexEngine.empty()) + const Anope::string ®exengine = Config->GetBlock("options")->Get<const Anope::string &>("regexengine"); + if (!regexengine.empty()) { source.Reply(" "); source.Reply(_("Regex matches are also supported using the %s engine.\n" - "Enclose your pattern in // if this is desired."), Config->RegexEngine.c_str()); + "Enclose your pattern in // if this is desired."), regexengine.c_str()); } return true; |