mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
No need for checking, commands.wrap rocks.
This commit is contained in:
parent
567f0b0001
commit
71e18515d7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user