diff options
author | Adam <Adam@anope.org> | 2013-09-21 11:21:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | df3c0b7b52066698a97b34edf5352cf344e991ac (patch) | |
tree | fb3f2384e8863e9fcb86581ed56516b4c2233b48 /modules/commands/ns_suspend.cpp | |
parent | 45702992ac8c0d36bd0a7eba1580d9cf8a364d74 (diff) |
Fix various commands to properly report a given expiry time is invalid
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r-- | modules/commands/ns_suspend.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 1037cfa88..ac4fdfaed 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -79,7 +79,14 @@ class CommandNSSuspend : public Command expiry.clear(); } else + { expiry_secs = Anope::DoTime(expiry); + if (expiry_secs == -1) + { + source.Reply(BAD_EXPIRY_TIME); + return; + } + } NickAlias *na = NickAlias::Find(nick); if (!na) |