diff --git a/src/entities/BaseRequestsHandler.ts b/src/entities/BaseRequestsHandler.ts index 5f8fdd9..1eeb8ce 100644 --- a/src/entities/BaseRequestsHandler.ts +++ b/src/entities/BaseRequestsHandler.ts @@ -415,12 +415,12 @@ export abstract class BaseRequestsHandler implements AbstractUserConnectionConta * @param name The name of the POST field containing the id of the emoji */ public postEmojiShortcut(name: string) : string { - const emojiShorcut = this.postString(name); + const emojiShortcut = this.postString(name); - if(!checkEmojiCode(emojiShorcut)) + if(!checkEmojiCode(emojiShortcut)) this.error(401, "Invalid emoji specified at " + name + "!") - return emojiShorcut; + return emojiShortcut; } /**