mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Channel: Add command @ban hostmask.
This commit is contained in:
parent
77e6de6bba
commit
f191e21970
@ -554,6 +554,13 @@ class Channel(callbacks.Plugin):
|
||||
list = wrap(list)
|
||||
|
||||
class ban(callbacks.Commands):
|
||||
def hostmask(self, irc, msg, args, channel, banmask):
|
||||
"""[<channel>] <banmask>
|
||||
|
||||
Bans the <banmask> from the <channel>."""
|
||||
irc.queueMsg(ircmsgs.ban(channel, banmask))
|
||||
hostmask = wrap(hostmask, ['op', ('haveHalfop+', _('ban someone')), 'text'])
|
||||
|
||||
@internationalizeDocstring
|
||||
def add(self, irc, msg, args, channel, banmask, expires):
|
||||
"""[<channel>] <nick|hostmask> [<expires>]
|
||||
|
Loading…
x
Reference in New Issue
Block a user