summaryrefslogtreecommitdiff
path: root/lib/rbot/config.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-02 15:28:36 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-02 15:28:36 +0000
commit5940baa7fb81196925d692d4e4fe6d6cab73d1ed (patch)
tree787348f8d4739d0c46b94a60494ddafdf5929618 /lib/rbot/config.rb
parentca1105be02e1baf867eaeb2c56049f87d8a9ecd3 (diff)
* Fixed the new http.proxy* settings, they work!
* Fixed a bug with auth-checking for the config module * misc tweaks
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