/*
 * @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;
}
 */
 ajaxChat.replaceCustomCommands = function(text, textParts) { 
	switch(textParts[0]) { 
		case '/takeover': 
		text=text.replace('/takeover', ' '); 
		return '<span class="chatBotMessage">' + text + '</span>'; 
		default: 
		return text; 
	}
} 


ajaxChat.customInitialize = function() {
	ajaxChat.addChatBotMessageToChatList('Welcome to Mandate of Power: The Chat.');
	ajaxChat.addChatBotMessageToChatList('Be sure to keep up with the [url=http://forums.mandateofpower.com/calendar.php][u]Calendar[/u][/url] and the [url=http://forums.mandateofpower.com/notebook.php][u]Harpy\'s Notebook[/u][/url]!');
}

