diff options
-rw-r--r-- | lib/rbot/load-gettext.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/load-gettext.rb b/lib/rbot/load-gettext.rb index 5738f197..4d39b7e4 100644 --- a/lib/rbot/load-gettext.rb +++ b/lib/rbot/load-gettext.rb @@ -34,7 +34,8 @@ begin alias :orig_bound_targets :bound_targets end def bound_targets(*a) # :nodoc: - orig_bound_targets(*a) rescue orig_bound_targets(Object) + bt = orig_bound_targets(*a) rescue [] + bt.empty? ? orig_bound_targets(Object) : bt end require 'stringio' |