summaryrefslogtreecommitdiff
path: root/lib/rbot/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/config.rb')
-rw-r--r--lib/rbot/config.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb
index a4522926..834b5a98 100644
--- a/lib/rbot/config.rb
+++ b/lib/rbot/config.rb
@@ -229,6 +229,7 @@ module Irc
value = params[:value].to_s
unless @@items.has_key?(key)
m.reply "no such config key #{key}"
+ return
end
begin
@@items[key].set_string(value)
@@ -263,7 +264,7 @@ module Irc
end
end
def usage(m,params)
- m.reply "incorrect usage, try '#{@bot.nick}: help config'"
+ m.reply "incorrect usage, try '#{@@bot.nick}: help config'"
end
# bot:: parent bot class