ircsocket.rb: use syswrite since ruby's buffered io is racy
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 24 Jun 2008 13:30:54 +0000 (15:30 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 24 Jun 2008 15:39:39 +0000 (17:39 +0200)
commitf95875a105566b1b81b2c8120e7fb7f5b0a840df
tree64615e0a34f688fc624ea106bee4e5128ac52378
parent9ad6b29acc7c96c394f470f261cea7331004110b
ircsocket.rb: use syswrite since ruby's buffered io is racy

In some situations a PRIVMSG could be output twice in sequence with no
intervening newline when using the Socket#puts function. Use syswrite to
skip Ruby's buffered IO.
lib/rbot/ircsocket.rb