mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Fixed ugliness (tons of returns?) and SyntaxError (missing parenthese).
This commit is contained in:
parent
cfe4ce14a9
commit
0cf31453bc
@ -110,10 +110,8 @@ class Quotes(ChannelDBHandler, callbacks.Privmsg):
|
||||
ret = cursor.fetchall()
|
||||
if ret:
|
||||
irc.reply(msg, ret[0][0])
|
||||
return
|
||||
else:
|
||||
irc.reply(msg, "That quote doesn't exist.")
|
||||
return
|
||||
except ValueError: # It's not an int.
|
||||
r = re.compile(value, re.I)
|
||||
def p(s):
|
||||
|
Loading…
Reference in New Issue
Block a user