summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rbot/config.rb2
1 files changed, 1 insertions, 1 deletions
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