Skip to content

Commit 87b2f96

Browse files
author
Ferass El Hafidi
committed
src/bridge/AdminRoomHandler.ts: don't require commands be uppercase
when using `!cmd` IRC commands can be lowercase. Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
1 parent 1b1a72f commit 87b2f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bridge/AdminRoomHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export class AdminRoomHandler {
428428
const keyword = args[0];
429429

430430
// keyword could be a failed server or a malformed command
431-
if (!keyword.match(/^[A-Z]+$/)) {
431+
if (!keyword.match(/^[A-Za-z]+$/)) {
432432
// if not a domain OR is only word (which implies command)
433433
if (!keyword.match(/^[a-z0-9:\.-]+$/) || args.length === 1) {
434434
throw new Error(`Malformed command: ${keyword}`);

0 commit comments

Comments
 (0)