Removed redundant configuration values and made use of customizable join/quit messages.

This commit is contained in:
FrozenCow 2011-04-05 22:30:43 +02:00
parent d4a2d2d32f
commit e1e13df4b2
5 changed files with 14 additions and 26 deletions

View file

@ -34,6 +34,11 @@ componentconstructors['chat'] = function(dynmap, configuration) {
if(response) {
$(dynmap).trigger('chat', [{source: 'me', name: ip, text: message}]);
}
},
error: function(xhr) {
if (xhr.status === 403) {
$(dynmap).trigger('chat', [{source: 'me', name: 'Error', text: dynmap.options.spammessage.replace('%interval%', dynmap.options['webchat-interval'])}]);
}
}
});
});