Remove word filtering of expressions via command

When used as a command, eg. `/bob` or `/e bob`,
the word filters are disabled.
This commit is contained in:
Stubenhocker1399
2019-09-06 11:39:19 -05:00
committed by Eliot Partridge
parent 829fa3c957
commit a761dfaa8e
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ export const createSay =
}
}
} else {
const expression = parseExpression(text.substr(1));
const expression = parseExpression(text.substr(1), true);
if (expression) {
setEntityExpression(client.pony, expression);
+2 -2
View File
@@ -197,7 +197,7 @@ export function createCommands(world: World): Command[] {
command(['w', 'whisper'], '/w <name> - whisper to player', '', shouldNotBeCalled),
command(['r', 'reply'], '/r - reply to whisper', '', shouldNotBeCalled),
command(['e'], '/e - set permanent expression', '', ({ }, { pony }, message) => {
pony.exprPermanent = parseExpression(message);
pony.exprPermanent = parseExpression(message, true);
setEntityExpression(pony, undefined, 0);
}),
@@ -206,7 +206,7 @@ export function createCommands(world: World): Command[] {
execAction(client, Action.TurnHead, settings);
}),
command(['boop', ')'], '/boop or /) - a boop', '', ({ }, client, message, _, __, settings) => {
const expression = parseExpression(message);
const expression = parseExpression(message, true);
if (expression) {
setEntityExpression(client.pony, expression, 800);