mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Support nameless chat messages
These messages are used to support timestamps and highlighting in certain places.
This commit is contained in:
@@ -415,6 +415,9 @@ var Tools = {
|
||||
return '<div class="chat">' + Tools.sanitizeHTML(target) + '</div>';
|
||||
default:
|
||||
// Not a command or unsupported. Parsed as a normal chat message.
|
||||
if (!name) {
|
||||
return '<div class="chat' + hlClass + '">' + timestamp + '<em>' + Tools.parseMessage(message) + '</em></div>';
|
||||
}
|
||||
return '<div class="chat chatmessage-' + toId(name) + hlClass + mineClass + '">' + timestamp + '<strong style="' + color + '">' + clickableName + ':</strong> <em>' + Tools.parseMessage(message) + '</em></div>';
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user