We want to skip the queue if the name doesn't match the specified one, not if they...
[asterisk/asterisk.git] / apps / app_queue.c
index 478df3a..f4916cf 100644 (file)
@@ -4079,7 +4079,7 @@ static int __queues_show(struct mansession *s, int fd, int argc, char **argv)
                float sl;
 
                ast_mutex_lock(&q->lock);
-               if (argc == 3 && !strcasecmp(q->name, argv[2])) {
+               if (argc == 3 && strcasecmp(q->name, argv[2])) {
                        ast_mutex_unlock(&q->lock);
                        continue;
                }