diff options
| author | Adam <Adam@anope.org> | 2011-08-23 19:04:27 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-23 19:04:27 -0400 |
| commit | 21a8bff0113204fa7e4f3257fdbaf851f006b748 (patch) | |
| tree | f46d1f7528a2f117d59d1c195ef255d3ef68797a /modules/commands | |
| parent | fb14f7706cb24c5a39a8afa23c6471e7cef97c99 (diff) | |
| parent | 2284c31f904e08ba3fa0b10040878abb1dc5afae (diff) | |
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
Diffstat (limited to 'modules/commands')
| -rw-r--r-- | modules/commands/os_forbid.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index e982c3305..ffa5503e7 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -108,6 +108,13 @@ class CommandOSForbid : public Command Anope::string reason = !expiry.empty() && params.size() > 4 ? params[4] : (params.size() > 3 ? params[3] : ""); time_t expiryt = 0; + + if (Config->ForceForbidReason && reason.empty()) + { + this->OnSyntaxError(source, ""); + return; + } + if (!expiry.empty()) { expiryt = dotime(expiry); |
