mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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))
|
args = tuple(map(str, args))
|
||||||
return IrcMsg(prefix=prefix, command='MODE', args=(channel,)+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=''):
|
def invite(nick, channel, prefix=''):
|
||||||
"""Returns an INVITE for nick."""
|
"""Returns an INVITE for nick."""
|
||||||
if conf.supybot.protocols.irc.strictRfc():
|
if conf.supybot.protocols.irc.strictRfc():
|
||||||
|
Loading…
Reference in New Issue
Block a user