]> jfr.im git - irc/rizon/acid.git/commitdiff
Prevent adding of empty quotes. 31/head
authorDwarf <redacted>
Sat, 16 Apr 2016 15:32:11 +0000 (17:32 +0200)
committerDwarf <redacted>
Sat, 16 Apr 2016 15:32:11 +0000 (17:32 +0200)
pyva/pyva/src/main/python/quotes/quotes.py

index d57c6e332fc2e55d36df265d0536a5730fc4ecd1..af5a7e0efaf4f9adeef61e103a79560f44188bb0 100644 (file)
@@ -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