mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 12:34:58 -05:00
Support more PM message types
This commit is contained in:
parent
3a345cd7fe
commit
e26f8c32ec
|
|
@ -157,6 +157,10 @@
|
|||
$chat.append('<div class="message"><ul class="utilichart">'+Chart.abilityRow(Tools.getAbility(message.substr(14)),'',{})+'<li style=\"clear:both\"></li></ul></div>');
|
||||
} else if (message.substr(0,11) === '/data-move ') {
|
||||
$chat.append('<div class="message"><ul class="utilichart">'+Chart.moveRow(Tools.getMove(message.substr(11)),'',{})+'<li style=\"clear:both\"></li></ul></div>');
|
||||
} else if (message.substr(0,6) === '/text ') {
|
||||
$chat.append('<div class="chat">'+Tools.escapeHTML(message.substr(6))+'</div>');
|
||||
} else if (message.substr(0,6) === '/html ') {
|
||||
$chat.append('<div class="chat">'+Tools.sanitizeHTML(message.substr(6))+'</div>');
|
||||
} else {
|
||||
// Normal chat message.
|
||||
if (message.substr(0,2) === '//') message = message.substr(1);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user