From 803997ee785156e9e75a132d5354b473ae9a61a7 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 19 Oct 2004 12:13:41 +0000 Subject: [PATCH] Somehow the p-testing was removed. --- src/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands.py b/src/commands.py index a6f128c01..1d0557116 100644 --- a/src/commands.py +++ b/src/commands.py @@ -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: