mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added limit commands.
This commit is contained in:
parent
9165c698e0
commit
fbe80ef138
@ -625,6 +625,12 @@ def mode(channel, args=(), prefix=''):
|
||||
args = tuple(map(str, args))
|
||||
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+args)
|
||||
|
||||
def limit(channel, limit, prefix=''):
|
||||
return mode(channel, ['+l', limit], prefix=prefix)
|
||||
|
||||
def unlimit(channel, limit, prefix=''):
|
||||
return mode(channel, ['-l', limit], prefix=prefix)
|
||||
|
||||
def invite(nick, channel, prefix=''):
|
||||
"""Returns an INVITE for nick."""
|
||||
if conf.supybot.protocols.irc.strictRfc():
|
||||
|
Loading…
Reference in New Issue
Block a user