]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
fix: stderr vs stdout write override
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 2 Jun 2021 17:47:53 +0000 (19:47 +0200)
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>
Sat, 5 Jun 2021 16:06:45 +0000 (18:06 +0200)
In 96d13521d the STDOUT/STDERR write overrides were replaced
by overrides to $stdout, but the second should have been to $stderr
(obviously).

lib/rbot/ircbot.rb

index 4eac68d610c1056e71910a35352fe80731a6d79e..91586c6a257054ca2059cd5e91a3cd735caf3be6 100644 (file)
@@ -445,7 +445,7 @@ class Bot
         log str, 2
         return str.to_s.size
       end
-      def $stdout.write(str=nil)
+      def $stderr.write(str=nil)
         if str.to_s.match(/:\d+: warning:/)
           warning str, 2
         else