Skip to content

Commit

Permalink
Always send lower username for channel name.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdsprod authored Dec 18, 2016
1 parent ecadce0 commit 6e83f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/Scripts/twitch/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Server:connect(username, oauthToken, caps, timeout)
self:send("CAP REQ : "..table.concat(caps, " "))
self:send("PASS "..oauthToken)
self:send("NICK "..username)
self:send("JOIN #"..username)
self:send("JOIN #"..string.lower(username))

self.username = username
self.isConnected = true
Expand Down Expand Up @@ -117,4 +117,4 @@ function Server:removeCommandHandler(cmd, handler)
table.remove(self.commandHandlers[cmd], handler)
end

return Server
return Server

0 comments on commit 6e83f55

Please sign in to comment.