mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-03 08:10:58 -05:00
Support more PM message types
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user