diff --git a/plugin.py b/plugin.py index 854a3d5..bd616c1 100644 --- a/plugin.py +++ b/plugin.py @@ -1318,7 +1318,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): irc.reply('unknown patterns, already removed or unsupported mode') ue = wrap(ue,['op',many('something')]) - def remove (self,irc,msg,args,channel,nick,reason): + def r (self,irc,msg,args,channel,nick,reason): """[] [] force a part on with if provided""" @@ -1326,10 +1326,21 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): if not reason: reason = msg.nick chan.action.enqueue(ircmsgs.IrcMsg('REMOVE %s %s :%s' % (channel,nick,reason))) - irc.replySuccess() self.forceTickle = True self._tickle(irc) - remove = wrap(remove,['op','nickInChannel',additional('text')]) + r = wrap(r,['op','nickInChannel',additional('text')]) + + def k (self,irc,msg,args,channel,nick,reason): + """[] [] + + kick with if provided""" + chan = self.getChan(irc,channel) + if not reason: + reason = msg.nick + chan.action.enqueue(ircmsgs.kick(channel,nick,reason)) + self.forceTickle = True + self._tickle(irc) + k = wrap(k,['op','nickInChannel',additional('text')]) def match (self,irc,msg,args,channel,prefix): """[]