mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +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()
|
ret = cursor.fetchall()
|
||||||
if ret:
|
if ret:
|
||||||
irc.reply(msg, ret[0][0])
|
irc.reply(msg, ret[0][0])
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, "That quote doesn't exist.")
|
irc.reply(msg, "That quote doesn't exist.")
|
||||||
return
|
|
||||||
except ValueError: # It's not an int.
|
except ValueError: # It's not an int.
|
||||||
r = re.compile(value, re.I)
|
r = re.compile(value, re.I)
|
||||||
def p(s):
|
def p(s):
|
||||||
|
Loading…
Reference in New Issue
Block a user