Handle ban command arguments as array

This provides a much more reliable way to handle arguments with spaces,
such as usernames.

The ban process's stdout and stderr are now redirected to the server,
in case they have output that would be good in the server's logs.
This commit is contained in:
dakrk
2023-10-22 15:42:39 +01:00
parent 43fddbc521
commit 0b0c0a5ed6
3 changed files with 32 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ export default interface IConfig {
node : string;
displayname : string;
motd : string;
bancmd : string;
bancmd : string | string[];
moderatorEnabled : boolean;
usernameblacklist : string[];
maxChatLength : number;