diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-10-04 23:46:53 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-10-04 23:46:53 +0000 |
commit | 6b997b639acf598a84d2351e06804de108897ecb (patch) | |
tree | d72ca4d959cce6059dd8ac86f3a9653aac6025e8 /lib/rbot | |
parent | c8fc75ab7bbc7acc1690ebe7411d6f6fe9f47d26 (diff) |
Fix overzealous [1231]
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/core/auth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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
|