From e70d38ec4774e3c80db338de08c6d9addf868687 Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Wed, 16 Mar 2011 16:54:54 +0100
Subject: [PATCH] fix delright with * index

---
 cccli/command/right.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cccli/command/right.py b/cccli/command/right.py
index 281ce2d..0c997a2 100644
--- a/cccli/command/right.py
+++ b/cccli/command/right.py
@@ -84,11 +84,11 @@ class Command_delright(TqlCommand):
             raise cmdBadArgument()
         # building list of index
         try:
-            l = [ int(x) for x in self.args[1:] ]
+            l = [ int(x) for x in self.args[1:] if x != "*" ]
         except ValueError as e:
             raise cmdBadArgument("Indexes must be numbers")
         # if all is detected
-        if "*" in l:
+        if "*" in self.args[1:]:
             self.rpccall("delright", self.args[0], None)
         else:
             for index in l:
-- 
GitLab