diff options
| author | Adam <Adam@anope.org> | 2016-09-23 21:17:05 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-09-23 21:17:05 -0400 |
| commit | 92db2f1e1b66ec0ed1663fbaafadace616023240 (patch) | |
| tree | 5cf99d5aead9fd4e4db766483758df97049d3fdb | |
| parent | e4b63fddff00cdce1f277fbe2c36ac0ac2032d33 (diff) | |
Allow wildcard searching emails
| -rw-r--r-- | modules/nickserv/getemail.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/nickserv/getemail.cpp b/modules/nickserv/getemail.cpp index 730ef9387..0a996e7b0 100644 --- a/modules/nickserv/getemail.cpp +++ b/modules/nickserv/getemail.cpp @@ -36,10 +36,10 @@ class CommandNSGetEMail : public Command Log(LOG_ADMIN, source, this) << "on " << email; for (NickServ::Account *nc : NickServ::service->GetAccountList()) - if (!nc->GetEmail().empty() && nc->GetEmail().equals_ci(email)) + if (!nc->GetEmail().empty() && Anope::Match(nc->GetEmail(), email)) { ++j; - source.Reply(_("Email matched: \002{0}\002 to \002{1}\002."), nc->GetDisplay(), email); + source.Reply(_("Email matched: \002{0}\002 (\002{1}\002) to \002{2}\002."), nc->GetDisplay(), nc->GetEmail(), email); } if (j <= 0) |
