summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-06-02 19:47:53 +0200
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>2021-06-05 18:06:45 +0200
commitbfa60f1846df4cc8d1713c0143477fea791da87c (patch)
treeb147a5daae3869dbc7f29fe2442f528637abf56d
parent56e4713c5c0498838ed77a409e44fbc3251acde2 (diff)
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).
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
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