From: Dwarf Date: Sat, 16 Apr 2016 15:32:11 +0000 (+0200) Subject: Prevent adding of empty quotes. X-Git-Url: https://jfr.im/git/irc/rizon/acid.git/commitdiff_plain/refs/merge-requests/31/head Prevent adding of empty quotes. --- diff --git a/pyva/pyva/src/main/python/quotes/quotes.py b/pyva/pyva/src/main/python/quotes/quotes.py index d57c6e3..af5a7e0 100644 --- a/pyva/pyva/src/main/python/quotes/quotes.py +++ b/pyva/pyva/src/main/python/quotes/quotes.py @@ -274,6 +274,8 @@ class quotes( self.notice(sender, "You must have voice or higher on the channel to add quotes.") return quote = istring(' '.join(args[1:])) + if not quote: + return # Extremely inefficient. If possible, somehow merge into # just one MySQL query