From 7640fad30cc2a3d61e67a7075c27f26400d4779f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Feb 2024 10:16:05 +0000 Subject: Simplify several boolean expressions. --- modules/webcpanel/pages/nickserv/info.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/webcpanel/pages/nickserv/info.cpp') diff --git a/modules/webcpanel/pages/nickserv/info.cpp b/modules/webcpanel/pages/nickserv/info.cpp index 0a7c63f61..f32ee8c82 100644 --- a/modules/webcpanel/pages/nickserv/info.cpp +++ b/modules/webcpanel/pages/nickserv/info.cpp @@ -13,7 +13,7 @@ WebCPanel::NickServ::Info::Info(const Anope::string &cat, const Anope::string &u bool WebCPanel::NickServ::Info::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements) { - if (message.post_data.empty() == false) + if (!message.post_data.empty()) { if (message.post_data.count("email") > 0) { @@ -85,12 +85,12 @@ bool WebCPanel::NickServ::Info::OnRequest(HTTPProvider *server, const Anope::str } replacements["DISPLAY"] = na->nc->display; - if (na->nc->email.empty() == false) + if (!na->nc->email.empty()) replacements["EMAIL"] = na->nc->email; replacements["TIME_REGISTERED"] = Anope::strftime(na->time_registered, na->nc); if (na->HasVhost()) { - if (na->GetVhostIdent().empty() == false) + if (!na->GetVhostIdent().empty()) replacements["VHOST"] = na->GetVhostIdent() + "@" + na->GetVhostHost(); else replacements["VHOST"] = na->GetVhostHost(); -- cgit