From 25b987cc581ff33dc561325138f6e2937597ab95 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 29 Aug 2010 10:26:59 -0400 Subject: [PATCH] Model Admin's ignore help after Channel's. Closes: Sf#3054919 Signed-off-by: James Vega --- plugins/Admin/plugin.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/plugins/Admin/plugin.py b/plugins/Admin/plugin.py index 781570695..149d08235 100644 --- a/plugins/Admin/plugin.py +++ b/plugins/Admin/plugin.py @@ -298,12 +298,10 @@ class Admin(callbacks.Plugin): def add(self, irc, msg, args, hostmask, expires): """ [] - Ignores or, if a nick is given, ignores whatever - hostmask that nick is currently using. is a "seconds - from now" value that determines when the ignore will expire; if, - for instance, you wish for the ignore to expire in an hour, you - could give an of 3600. If no is given, the - ignore will never automatically expire. + This will set a persistent ignore on or the hostmask + currently associated with . is an optional argument + specifying when (in "seconds from now") the ignore will expire; if + it isn't given, the ignore will never automatically expire. """ ircdb.ignores.add(hostmask, expires) irc.replySuccess() @@ -312,8 +310,8 @@ class Admin(callbacks.Plugin): def remove(self, irc, msg, args, hostmask): """ - Ignores or, if a nick is given, ignores whatever - hostmask that nick is currently using. + This will remove the persistent ignore on or the + hostmask currently associated with . """ try: ircdb.ignores.remove(hostmask) @@ -325,7 +323,7 @@ class Admin(callbacks.Plugin): def list(self, irc, msg, args): """takes no arguments - Returns the hostmasks currently being globally ignored. + Lists the hostmasks that the bot is ignoring. """ # XXX Add the expirations. if ircdb.ignores.hostmasks: