summaryrefslogtreecommitdiff
path: root/lib/rbot/auth.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-20 20:08:26 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-20 20:08:26 +0000
commit8c45acb731d8ba8bc07f0934af2d4aeda637b155 (patch)
tree50f9e19cbdfd36a6dfe49284b7607e14c09f16ee /lib/rbot/auth.rb
parentda24f0f90c86a399a716d90c645ab921d03c5f51 (diff)
All lib/rbot files are now upgraded to the new logging feature
Diffstat (limited to 'lib/rbot/auth.rb')
-rw-r--r--lib/rbot/auth.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rbot/auth.rb b/lib/rbot/auth.rb
index 04e1e98b..ad7283b4 100644
--- a/lib/rbot/auth.rb
+++ b/lib/rbot/auth.rb
@@ -69,9 +69,9 @@ module Irc
File.rename("#{@bot.botclass}/users.yaml.new",
"#{@bot.botclass}/users.yaml")
rescue
- $stderr.puts "failed to write configuration file users.yaml! #{$!}"
- debug "#{e.class}: #{e}"
- debug e.backtrace.join("\n")
+ error "failed to write configuration file users.yaml! #{$!}"
+ error "#{e.class}: #{e}"
+ error e.backtrace.join("\n")
end
begin
debug "Writing new levels.rbot ..."
@@ -84,9 +84,9 @@ module Irc
File.rename("#{@bot.botclass}/levels.rbot.new",
"#{@bot.botclass}/levels.rbot")
rescue
- $stderr.puts "failed to write configuration file levels.rbot! #{$!}"
- debug "#{e.class}: #{e}"
- debug e.backtrace.join("\n")
+ error "failed to write configuration file levels.rbot! #{$!}"
+ error "#{e.class}: #{e}"
+ error e.backtrace.join("\n")
end
end