diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-06-12 17:45:05 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-06-12 17:46:07 +0100 |
| commit | 24375d53e6d970d95d5e224cfce0f2bce60c6071 (patch) | |
| tree | bdb2b008eafc6ebe03ecfdec195306d4661b7be7 /modules/operserv | |
| parent | 88ac47e2178a4e1996211fe5f7b2e692c8fcd319 (diff) | |
Add support for looking up account information from a nick.
Closes #407.
Diffstat (limited to 'modules/operserv')
| -rw-r--r-- | modules/operserv/os_forbid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/operserv/os_forbid.cpp b/modules/operserv/os_forbid.cpp index 4b00e0759..a5a8b79ea 100644 --- a/modules/operserv/os_forbid.cpp +++ b/modules/operserv/os_forbid.cpp @@ -532,7 +532,7 @@ public: EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> ¶ms) override { - if (command->name == "nickserv/info" && params.size() > 0) + if (command->name == "nickserv/info" && !params.empty() && params[0][0] != '=') { ForbidData *d = this->forbidService.FindForbid(params[0], FT_NICK); if (d != NULL) |
