From 6b997b639acf598a84d2351e06804de108897ecb Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 4 Oct 2007 23:46:53 +0000 Subject: Fix overzealous [1231] --- lib/rbot/core/auth.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb index 877da6e9..bab62f52 100644 --- a/lib/rbot/core/auth.rb +++ b/lib/rbot/core/auth.rb @@ -542,7 +542,7 @@ class AuthModule < CoreBotModule def auth_list_users(m, params) # TODO name regexp to filter results - list = @bot.auth.save_array.inject([]) { |list, x| list << x[:username] unless x.default? or x.owner? } + list = @bot.auth.save_array.inject([]) { |list, x| ['everyone', 'owner'].include?(x[:username]) ? list : list << x[:username] } if defined?(@destroy_q) list.map! { |x| @destroy_q.include?(x) ? x + _(" (queued for destruction)") : x -- cgit v1.2.3