]> jfr.im git - irc/rizon/acid.git/commitdiff
Fix quote del with no arg to not throw an exception
authorOrillion <redacted>
Sat, 21 Feb 2015 01:00:49 +0000 (20:00 -0500)
committerAdam <redacted>
Sat, 21 Feb 2015 01:00:49 +0000 (20:00 -0500)
pyva/pyva/src/main/python/quotes/quotes.py

index 7ed058c52bdb886dbb83602e8c45d3c66333045d..e3d6a01708989e11ddc0bef4593ac04db6a49407 100644 (file)
@@ -291,6 +291,10 @@ class quotes(
                                                self.notice(sender, args[1] + " is not a valid quote number.")
                                                return
 
+                                       if len(args) == 1:
+                                               self.notice(sender, "Please specify quote number to delete.")
+                                               return
+
                                        self.notice(sender, "Checking if you are the channel founder.")
                                        self.auth.request(sender, channel, 'delete_quote' + args[1])