summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-22 17:47:52 +0100
committerDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-22 17:47:52 +0100
commitffe9604fc9f9e54ffa14c99ab45b6f8e4457f6f9 (patch)
treea0cd4da34b5cfd0e09751457fc563a31b637d58b /src
parent3132621245630ac2ae345d331bb742ddeb88bfa2 (diff)
downloadtwitch-ffe9604fc9f9e54ffa14c99ab45b6f8e4457f6f9.tar.gz
twitch-ffe9604fc9f9e54ffa14c99ab45b6f8e4457f6f9.zip
Rate Limit Spec and less 1 letter vars
Diffstat (limited to 'src')
-rw-r--r--src/twitch/irc/connection.cr4
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