Deprecation notes.

This commit is contained in:
Jeremy Fincher 2005-01-12 21:05:55 +00:00
parent c6b50e75f0
commit 76a5e5988f

View File

@ -48,6 +48,7 @@ import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
import supybot.structures as structures
# XXX Deprecated, will be removed in 0.90.0.
def getChannel(msg, args=(), raiseError=True):
"""Returns the channel the msg came over or the channel given in args.
@ -74,6 +75,7 @@ def getChannel(msg, args=(), raiseError=True):
else:
return None
# XXX Deprecated, will be removed in 0.90.0.
def getArgs(args, required=1, optional=0):
"""Take the required/optional arguments from args.
@ -98,6 +100,7 @@ def getArgs(args, required=1, optional=0):
else:
return ret
# XXX Deprecated, will be removed in 0.90.0.
def checkCapability(f, capability):
"""Makes sure a user has a certain capability before a command will run.
capability can be either a string or a callable object which will be called