From: Giuseppe Bilotta Date: Wed, 2 Jun 2021 17:47:53 +0000 (+0200) Subject: fix: stderr vs stdout write override X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=bfa60f1846df4cc8d1713c0143477fea791da87c;hp=56e4713c5c0498838ed77a409e44fbc3251acde2;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git fix: stderr vs stdout write override In 96d13521d the STDOUT/STDERR write overrides were replaced by overrides to $stdout, but the second should have been to $stderr (obviously). --- diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index 4eac68d6..91586c6a 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -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