Added limit commands.

This commit is contained in:
Jeremy Fincher 2004-07-31 07:24:55 +00:00
parent 9165c698e0
commit fbe80ef138

View File

@ -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():