]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* (gettext) relaxed check for bound_target() existance
authordmitry kim <jason@nichego.net>
Sat, 6 Jun 2009 13:44:13 +0000 (17:44 +0400)
committerdmitry kim <jason@nichego.net>
Sat, 6 Jun 2009 13:44:13 +0000 (17:44 +0400)
lib/rbot/load-gettext.rb

index 505a28bc4aec7442c80ed8eae1f177b7d1d3b3c4..4c2dc5874bbb6240de6eac9118dbd916f752b053 100644 (file)
@@ -42,7 +42,7 @@ begin
     # patch for ruby-gettext 1.x to cope with anonymous modules used by rbot.
     # bound_targets and related methods are not used nor present in 2.x, and
     # this patch is not needed
-    if instance_methods.include?('bound_targets') and not instance_methods.include?('orig_bound_targets')
+    if methods.include? 'bound_targets'
       alias :orig_bound_targets :bound_targets
 
       def bound_targets(*a)  # :nodoc: