Removed redundant configuration values and made use of customizable join/quit messages.
This commit is contained in:
parent
d4a2d2d32f
commit
e1e13df4b2
5 changed files with 14 additions and 26 deletions
|
|
@ -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'])}]);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue