From 5bcd180faba85117edba00c881d7a6e35be5356f Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Fri, 9 Sep 2005 18:30:55 +0000 Subject: bugfix --- lib/rbot/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index 7475d617..dea77971 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -136,7 +136,7 @@ module Irc end end def parse(string) - unless @values.include?(string) + unless values.include?(string) raise ArgumentError, "invalid value #{string}, allowed values are: " + @values.join(", ") end string -- cgit v1.2.3