/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
	return text;
}
 */
 //Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/fuck/gi, 'frack');
text=text.replace(/shit/gi, 'shoot');
text=text.replace(/cunt/gi, '(BAN ME)');
text=text.replace(/nigger/gi, '(BAN ME)');
text=text.replace(/ass/gi, 'butt');
text=text.replace(/fucker/gi, 'butthead');
text=text.replace(/shithead/gi, 'poophead');
text=text.replace(/cock/gi, 'weenie');
text=text.replace(/faggot/gi, '(BAN ME');
text=text.replace(/poned/gi, 'I am laim');
return text;
}
ajaxChat.customInitialize = function() {
	ajaxChat.addChatBotMessageToChatList('Welcome to our chat. Please follow the rules. This is a PG13 board.  Offensive language or content will result in BANNING from our site! ');
}
