mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Add |notify| (#873)
This commit is contained in:
@@ -1253,6 +1253,13 @@
|
||||
this.$chat.append('<div class="notice">' + Tools.sanitizeHTML(row.slice(1).join('|')) + '</div>');
|
||||
break;
|
||||
|
||||
case 'notify':
|
||||
if (!Tools.prefs('mute') && Tools.prefs('notifvolume')) {
|
||||
soundManager.getSoundById('notif').setVolume(Tools.prefs('notifvolume')).play();
|
||||
}
|
||||
this.notifyOnce(row[1], row.slice(2).join('|'), 'highlight');
|
||||
break;
|
||||
|
||||
case 'error':
|
||||
this.$chat.append('<div class="notice message-error">' + Tools.escapeHTML(row.slice(1).join('|')) + '</div>');
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user