diff --git a/file/js/be.bastelstu.WCF.Chat.coffee b/file/js/be.bastelstu.WCF.Chat.coffee
index 059970e..73fea5c 100644
--- a/file/js/be.bastelstu.WCF.Chat.coffee
+++ b/file/js/be.bastelstu.WCF.Chat.coffee
@@ -47,7 +47,7 @@ consoleMock ?=
refreshRoomList: null
fish: null
init: () ->
- console.log '[be.bastelstu.WCF.Chat Initializing'
+ console.log '[be.bastelstu.WCF.Chat] Initializing'
@bindEvents()
@events.newMessage.add $.proxy @notify, @
@@ -56,7 +56,7 @@ consoleMock ?=
@refreshRoomList()
@getMessages()
- console.log '[be.bastelstu.WCF.Chat Finished initializing - Shields at 104 percent'
+ console.log '[be.bastelstu.WCF.Chat] Finished initializing - Shields at 104 percent'
###
# Autocompletes a username
###
@@ -122,7 +122,7 @@ consoleMock ?=
firstChars = @autocompleteValue.substring(@autocompleteValue.lastIndexOf(' ')+1)
- console.log '[be.bastelstu.WCF.Chat Autocompleting "' + firstChars + '"'
+ console.log '[be.bastelstu.WCF.Chat] Autocompleting "' + firstChars + '"'
return if firstChars.length is 0
# Insert name and increment offset
@@ -219,7 +219,7 @@ consoleMock ?=
###
freeTheFish: () ->
return if $.wcfIsset 'fish'
- console.warn '[be.bastelstu.WCF.Chat Freeing the fish'
+ console.warn '[be.bastelstu.WCF.Chat] Freeing the fish'
fish = $ '
' + WCF.String.escapeHTML('><((((\u00B0>') + '
'
fish.css
position: 'absolute'
@@ -258,12 +258,12 @@ consoleMock ?=
@handleUsers(data.users)
, @)
error: $.proxy((jqXHR, textStatus, errorThrown) ->
- console.error '[be.bastelstu.WCF.Chat Battle Station hit - shields at ' + (--@shields / 3 * 104) + ' percent'
+ console.error '[be.bastelstu.WCF.Chat] Battle Station hit - shields at ' + (--@shields / 3 * 104) + ' percent'
if @shields is 0
@pe.refreshRoomList.stop()
@pe.getMessages.stop()
@freeTheFish()
- console.error '[be.bastelstu.WCF.Chat We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
+ console.error '[be.bastelstu.WCF.Chat] We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
alert 'herp i cannot load messages'
, @)
###
@@ -310,12 +310,12 @@ consoleMock ?=
# Move the user to the correct position
if element[0]
- console.log '[be.bastelstu.WCF.Chat Moving User: "' + user.username + '"'
+ console.log '[be.bastelstu.WCF.Chat] Moving User: "' + user.username + '"'
element = element.detach()
$('#timsChatUserList').append element
# Insert the user
else
- console.log '[be.bastelstu.WCF.Chat Inserting User: "' + user.username + '"'
+ console.log '[be.bastelstu.WCF.Chat] Inserting User: "' + user.username + '"'
li = $ ''
li.attr 'id', id
li.addClass 'timsChatUser'
@@ -341,7 +341,7 @@ consoleMock ?=
# Remove users that were not found
$('.timsChatUser').each () ->
if typeof foundUsers[$(@).attr('id')] is 'undefined'
- console.log '[be.bastelstu.WCF.Chat Removing User: "' + $(@).data('username') + '"'
+ console.log '[be.bastelstu.WCF.Chat] Removing User: "' + $(@).data('username') + '"'
$(@).remove();
@@ -393,7 +393,7 @@ consoleMock ?=
# Refreshes the room-list.
###
refreshRoomList: () ->
- console.log '[be.bastelstu.WCF.Chat Refreshing the roomlist'
+ console.log '[be.bastelstu.WCF.Chat] Refreshing the roomlist'
$('#toggleRooms a').addClass 'ajaxLoad'
$.ajax $('#toggleRooms a').data('refreshUrl'),
@@ -416,7 +416,7 @@ consoleMock ?=
@changeRoom $ event.target
, @
- console.log '[be.bastelstu.WCF.Chat Found ' + data.length + ' rooms'
+ console.log '[be.bastelstu.WCF.Chat] Found ' + data.length + ' rooms'
, @)
###
# Handles submitting of messages.