]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Use rbot's own warning() command instead of Ruby built-in warn()
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 08:22:42 +0000 (08:22 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 08:22:42 +0000 (08:22 +0000)
lib/rbot/botuser.rb
lib/rbot/core/utils/extends.rb
lib/rbot/language.rb

index 5ae7fc2b2b72e2474a4ba71e8e0c68d6fb944039..e498ce6c2cabdbef086511de386f71e10e811380 100644 (file)
@@ -549,7 +549,7 @@ module Irc
 \r
       def load_array(ary, forced)\r
         unless ary\r
-          warn "Tried to load an empty array"\r
+          warning "Tried to load an empty array"\r
           return\r
         end\r
         raise "Won't load with unsaved changes" if @has_changes and not forced\r
index 80bad3836b8725b0b6fac45c8f57e4bc49389435..e0c781b194cba78910028f156c2ea735b80f1fe0 100644 (file)
@@ -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
index 91ac2dd35eedbf1647e048f0207ad135e4e154dd..c9130ee0acc54c7b6c7904b167acc2ca3ea05814 100644 (file)
@@ -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"