diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/twitch/irc/connection.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/twitch/irc/connection.cr b/src/twitch/irc/connection.cr index daf6a05..b2647f7 100644 --- a/src/twitch/irc/connection.cr +++ b/src/twitch/irc/connection.cr @@ -38,8 +38,8 @@ class Twitch::IRC::Connection else socket.on_message do |message| reader = FastIRC::Reader.new(IO::Memory.new(message)) - while m = reader.next - @on_message.try &.call(m) + while msg = reader.next + @on_message.try &.call(msg) end end socket.run |