mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +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)
|
list = wrap(list)
|
||||||
|
|
||||||
class ban(callbacks.Commands):
|
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
|
@internationalizeDocstring
|
||||||
def add(self, irc, msg, args, channel, banmask, expires):
|
def add(self, irc, msg, args, channel, banmask, expires):
|
||||||
"""[<channel>] <nick|hostmask> [<expires>]
|
"""[<channel>] <nick|hostmask> [<expires>]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user