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/os_ignore.cpp | |
| parent | 45702992ac8c0d36bd0a7eba1580d9cf8a364d74 (diff) | |
Fix various commands to properly report a given expiry time is invalid
Diffstat (limited to 'modules/commands/os_ignore.cpp')
| -rw-r--r-- | modules/commands/os_ignore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 4cdb26a74..3bd909c49 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -164,7 +164,7 @@ class CommandOSIgnore : public Command if (t <= -1) { - source.Reply(_("You have to enter a valid number as time.")); + source.Reply(BAD_EXPIRY_TIME); return; } @@ -176,8 +176,8 @@ class CommandOSIgnore : public Command } else { - source.Reply(_("\002%s\002 will now be ignored for \002%s\002."), nick.c_str(), time.c_str()); - Log(LOG_ADMIN, source, this) << "to add an ignore on " << nick << " for " << time; + source.Reply(_("\002%s\002 will now be ignored for \002%s\002."), nick.c_str(), Anope::Duration(t, source.GetAccount()).c_str()); + Log(LOG_ADMIN, source, this) << "to add an ignore on " << nick << " for " << Anope::Duration(t, source.GetAccount()); } } |
