Added limit commands.

This commit is contained in:
Jeremy Fincher 2004-07-31 07:24:55 +00:00
parent 9165c698e0
commit fbe80ef138
1 changed files with 6 additions and 0 deletions

View File

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