Skip to content
Snippets Groups Projects
Commit 8b22b153 authored by Atanamo's avatar Atanamo
Browse files

Some Bugfixes, mainly regarding type safety

parent ce3d30dd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,8 +27,8 @@ class BotChannel extends Channel
 
constructor: (data, @isPermanent) ->
super
@ircChannelName = data.irc_channel or @ircChannelName
@ircChannelPassword = data.password or @ircChannelPassword
@ircChannelName = String(data.irc_channel or @ircChannelName)
@ircChannelPassword = String(data.password or '') or @ircChannelPassword
@gameID = data.game_id or @gameID
@botList = {}
@ircUserList = {}
Loading
Loading
Loading
Loading
@@ -31,9 +31,9 @@ class Channel
constructor: (data) ->
@_updateUniqueClientsMap() # Initialize map of unique clients
 
@name = data.name or @name
@name = String(data.name or @name)
@creatorID = data.creator_id or @creatorID
@title = data.title or @name
@title = String(data.title or @name)
@isPublic = data.is_public or @isPublic
@isCustom = @name.indexOf(Config.INTERN_NONGAME_CHANNEL_PREFIX) is 0
 
Loading
Loading
Loading
Loading
@@ -204,7 +204,7 @@ class this.SocketClient
 
if identData.isIrcClient and identData.idGame
fullText = data[textProperty]
matchData = fullText.match(/<([^> ]+)>[: ]/)
matchData = fullText.match(/<([^>]+)>[: ]/)
 
if matchData?.length
inlineText = matchData[0]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment