From 71e18515d79440ab3cf6a809f10c6c50897e7db6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 1 Oct 2004 22:35:34 +0000 Subject: [PATCH] No need for checking, commands.wrap rocks. --- src/Channel.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Channel.py b/src/Channel.py index 6bfb22606..0bf700359 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -311,18 +311,6 @@ class Channel(callbacks.Privmsg): self.log.warning('%r tried to make me kban myself.', msg.prefix) irc.error('I cowardly refuse to kickban myself.') return - try: - length = int(length or 0) - if length < 0: - irc.error('Ban length must be a non-negative integer.') - return - except ValueError: - if reason: - reason = ' '.join((length, reason)) - length = 0 - else: - irc.error('Ban length must be a non-negative integer.') - return if not reason: reason = msg.nick try: