From bfa60f1846df4cc8d1713c0143477fea791da87c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 2 Jun 2021 19:47:53 +0200 Subject: 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). --- lib/rbot/ircbot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3