Somehow the p-testing was removed.

This commit is contained in:
Jeremy Fincher 2004-10-19 12:13:41 +00:00
parent 5fc347f3f0
commit 803997ee78
1 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,9 @@ def _int(s):
def getInt(irc, msg, args, state, type='integer', p=None):
try:
i = _int(args[0])
if p is not None:
if not p(i):
irc.errorInvalid(type, args[0])
state.args.append(i)
del args[0]
except ValueError: