fix: write override behavior
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 2 Jun 2021 19:31:20 +0000 (21:31 +0200)
committerMatthias Hecker <36882671+mattzque@users.noreply.github.com>
Sat, 5 Jun 2021 16:06:45 +0000 (18:06 +0200)
commit3c9454d8a1f649f62a4f45461337434a791b1109
tree37d36304be87c1b0d8a1bccbab832136b2ec337a
parentab23670d711ce0ab3e609421df96d837b6b93350
fix: write override behavior

IO.write() takes an arbitrary number of argumens, that are converted to string
and joined on write. We should behave the same way.

Moreover, the returned value is the number of bytes, and this is bytesize
in modern Ruby.
lib/rbot/ircbot.rb