Change the @ Symbol
(Versions 1.6 - 1.9.1) (In versions 2.0+ use the AWC Translation to translate 'mod' )In version 1.6 of AWC the [ic]at_replacement[/ic] option was removed and now the @ symbol must be replaced manually by us. Not a problem though, just use this code.
- Code:
avacweb_chat_config.message_hook.push(function(row, username, user_id, user) {
user.innerHTML = user.innerHTML.replace(/@(?=\W)/, 'Mod: '); //perform @ replacement
});
avacweb_chat_config.user_hook.push(function(row, username, user_id) {
var u = row.getElementsByTagName('a')[0];
if(u) u.innerHTML = u.innerHTML.replace(/@(?=\W)/, 'Mod: '); //perform @ replacement
});
You can change [ic]Mod: [/ic] in the code into your replacement. You can use HTML as a replacement if you want.