summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-26 08:22:42 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-26 08:22:42 +0000
commitabdbe1adcd085a131c301bb5f40c053b96b47638 (patch)
tree7b55fc02ccfd76e631c4d12f1e9e51062391b2c9 /lib
parenta5b6d6cd4a02d37814da401a145088bdf7f79876 (diff)
Use rbot's own warning() command instead of Ruby built-in warn()
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/botuser.rb2
-rw-r--r--lib/rbot/core/utils/extends.rb2
-rw-r--r--lib/rbot/language.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index 5ae7fc2b..e498ce6c 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -549,7 +549,7 @@ module Irc
def load_array(ary, forced)
unless ary
- warn "Tried to load an empty array"
+ warning "Tried to load an empty array"
return
end
raise "Won't load with unsaved changes" if @has_changes and not forced
diff --git a/lib/rbot/core/utils/extends.rb b/lib/rbot/core/utils/extends.rb
index 80bad383..e0c781b1 100644
--- a/lib/rbot/core/utils/extends.rb
+++ b/lib/rbot/core/utils/extends.rb
@@ -123,7 +123,7 @@ class ::String
str + ": " + link
}
else
- warn "unknown :a_href option #{val} passed to ircify_html" if val
+ warning "unknown :a_href option #{val} passed to ircify_html" if val
end
# Paragraph and br tags are converted to whitespace
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb
index 91ac2dd3..c9130ee0 100644
--- a/lib/rbot/language.rb
+++ b/lib/rbot/language.rb
@@ -72,7 +72,7 @@ module Language
debug "locale set to #{locale}"
rbot_gettext_debug
else
- warn "Unable to set locale, unknown language #{language} (#{lang_str})"
+ warning "Unable to set locale, unknown language #{language} (#{lang_str})"
end
file = Config::datadir + "/languages/#{lang_str}.lang"