mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Chat: Fix parseSpoiler adding undefined strings
This commit is contained in:
parent
61ea2dd916
commit
7447130127
|
|
@ -814,7 +814,7 @@ export class CommandContext extends MessageContext {
|
|||
(this.room || Rooms.global).modlog(entry);
|
||||
}
|
||||
parseSpoiler(str: string) {
|
||||
let privateReason;
|
||||
let privateReason = "";
|
||||
if (!str) return {publicReason: "", privateReason};
|
||||
|
||||
let publicReason = str;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user