mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-02 07:42:12 -05:00
Add /clear to PMs (#869)
This commit is contained in:
committed by
Guangcong Luo
parent
29264631b4
commit
055cc4adff
@@ -326,6 +326,8 @@
|
||||
delete app.ignore[userid];
|
||||
$chat.append('<div class="chat">User ' + userid + ' no longer ignored.</div>');
|
||||
}
|
||||
} else if (text.toLowerCase() === '/clear') {
|
||||
$chat.empty();
|
||||
} else {
|
||||
text = ('\n' + text).replace(/\n\n/g, '\n').replace(/\n/g, '\n/pm ' + userid + ', ').substr(1);
|
||||
if (text.length > 80000) {
|
||||
|
||||
Reference in New Issue
Block a user