From 360581ccb7eed36590d51e57480142ebfbdf867f Mon Sep 17 00:00:00 2001 From: Erika Mustermann Date: Sat, 13 Dec 2014 13:46:26 -0600 Subject: [PATCH] Fix syntax for &b command Options should precede data --- plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 3d6430f..2701b7f 100644 --- a/plugin.py +++ b/plugin.py @@ -1472,8 +1472,8 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): irc.reply('unknown pattern, or pattern already active') q = wrap(q,['op',commalist('something'),any('getTs',True),rest('text')]) - def b (self, irc, msg, args, channel, items, optlist, seconds, reason): - """[] [,] [--perm] [y] [w] [d] [h] [m] [s] [<-1> or empty means forever] + def b (self, irc, msg, args, channel, optlist, items, seconds, reason): + """[] [--perm] [,] [y] [w] [d] [h] [m] [s] [<-1> or empty means forever] +b targets for duration is mandatory, add --perm if you want to add it to permanent bans of Channel""" perm = False @@ -1483,7 +1483,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): b = self._adds(irc,msg,args,channel,'b',items,getDuration(seconds),reason,perm) if not msg.nick == irc.nick and not b: irc.reply('unknown pattern, or pattern already active') - b = wrap(b,['op',commalist('something'),getopts({'perm':''}),any('getTs',True),rest('text')]) + b = wrap(b,['op',getopts({'perm':''}),commalist('something'),any('getTs',True),rest('text')]) def i (self, irc, msg, args, channel, items, seconds, reason): """[] [,] [y] [w] [d] [h] [m] [s] [<-1> or empty means forever]