Cleaned up join/quit messages (not being send as chat messages)

This commit is contained in:
FrozenCow 2011-04-05 22:58:46 +02:00
parent be1424ec14
commit 542bda59d4
6 changed files with 47 additions and 26 deletions

View file

@ -12,10 +12,7 @@ componentconstructors['chat'] = function(dynmap, configuration) {
$(dynmap).bind('worldupdate', function(event, update) {
swtch(update.type, {
chat: function() {
$(dynmap).trigger('chat', [{source: 'player', name: update.playerName, text: update.message}]);
},
webchat: function() {
$(dynmap).trigger('chat', [{source: 'web', name: update.playerName, text: update.message}]);
$(dynmap).trigger('chat', [{source: update.source, name: update.playerName, text: update.message}]);
}
});
});