Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion StreamCenter/Helpers/Extensions/String.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extension String {
return self[from..<end]
}
func substring(_ from: Int, length: Int) -> String {
let end = from + length
let end = from + length + 1
return self[from..<end]
}
}
Expand Down
2 changes: 1 addition & 1 deletion StreamCenter/TwitchAPI/Chat/TwitchChatManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TwitchChatManager {
func joinTwitchChannel(_ channel : TwitchChannel) {
let dispatchTime: DispatchTime = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: {
self.connection?.sendStringMessage("JOIN #\(channel.name)", immediately: true)
self.connection?.sendStringMessage("JOIN #\(channel.name!)", immediately: true)
})
}

Expand Down