From ffe9604fc9f9e54ffa14c99ab45b6f8e4457f6f9 Mon Sep 17 00:00:00 2001 From: Daniel Worrall Date: Wed, 22 May 2019 17:47:52 +0100 Subject: Rate Limit Spec and less 1 letter vars --- src/twitch/irc/connection.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3