{master} allow /W for whispers - closes #7294

pull/7311/head
Thibault Duplessis 2020-09-13 12:46:48 +02:00
parent eb27b8c91d
commit bb128be70c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ final class Messenger(api: ChatApi) {
def watcher(gameId: Game.Id, userId: User.ID, text: String) =
api.userChat.write(watcherId(gameId), userId, text, PublicSource.Watcher(gameId.value).some, _.Round)
private val whisperCommands = List("/whisper ", "/w ")
private val whisperCommands = List("/whisper ", "/w ", "/W ")
def owner(gameId: Game.Id, userId: User.ID, text: String): Unit =
whisperCommands.collectFirst {

View File

@ -8,7 +8,7 @@ import { lineAction as modLineAction } from './moderation';
import { userLink } from './util';
import { flag } from './xhr'
const whisperRegex = /^\/w(?:hisper)?\s/;
const whisperRegex = /^\/[wW](?:hisper)?\s/;
export default function(ctrl: Ctrl): Array<VNode | undefined> {
if (!ctrl.vm.enabled) return [];