This should allow contexts where we allow converters.

This commit is contained in:
Jeremy Fincher 2004-10-28 17:08:23 +00:00
parent ac57418802
commit 60966044b1

View File

@ -601,10 +601,12 @@ class context(object):
self.converter = getConverter(spec[0])
elif spec is None:
self.converter = getConverter('anything')
else:
assert isinstance(spec, basestring)
elif isinstance(spec, basestring):
self.args = ()
self.converter = getConverter(spec)
else:
assert isinstance(spec, context)
self.converter = spec
def __call__(self, irc, msg, args, state):
## if args and not (state.types or state.allowExtra):