diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-27 10:16:05 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-27 10:19:44 +0000 |
| commit | 7640fad30cc2a3d61e67a7075c27f26400d4779f (patch) | |
| tree | f313f0e7cf6fafd1c94f7bd2b3650a207f941ccc /modules/operserv | |
| parent | 9f6d3787559febb48611b1477eaa6a35beadf71a (diff) | |
Simplify several boolean expressions.
Diffstat (limited to 'modules/operserv')
| -rw-r--r-- | modules/operserv/os_logsearch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/operserv/os_logsearch.cpp b/modules/operserv/os_logsearch.cpp index 145e12b53..606a74d78 100644 --- a/modules/operserv/os_logsearch.cpp +++ b/modules/operserv/os_logsearch.cpp @@ -93,7 +93,7 @@ public: Log(LOG_ADMIN, source, this) << "for " << search_string; bool wildcard = search_string.find_first_of("?*") != Anope::string::npos; - bool regex = search_string.empty() == false && search_string[0] == '/' && search_string[search_string.length() - 1] == '/'; + bool regex = !search_string.empty() && search_string[0] == '/' && search_string[search_string.length() - 1] == '/'; const Anope::string &logfile_name = Config->GetModule(this->owner)->Get<const Anope::string>("logname"); std::vector<Anope::string> matches; |
