From 02e6258e258aea909cee5c87897e9d93ed1fc1d1 Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sat, 12 Sep 2015 22:29:01 +0200 Subject: [PATCH] player names can contain underscores --- lib/playerPlugins/commands.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/playerPlugins/commands.js b/lib/playerPlugins/commands.js index 13f9a5e..f5c879c 100644 --- a/lib/playerPlugins/commands.js +++ b/lib/playerPlugins/commands.js @@ -28,7 +28,7 @@ function inject(serv, player, options) { } } else if (results = command.match(/^kick/)) { - results = command.match(/^kick ([a-zA-Z0-9]+)(?: (.*))?/); + results = command.match(/^kick ([a-zA-Z0-9_]+)(?: (.*))?/); if (!results) { player.chat("Usage: /kick [reason]"); } @@ -46,7 +46,7 @@ function inject(serv, player, options) { } } else if (results = command.match(/^ban/)) { - results = command.match(/^ban ([a-zA-Z0-9]+)(?: (.*))?/); + results = command.match(/^ban ([a-zA-Z0-9_]+)(?: (.*))?/); if (!results) { player.chat("Usage: /ban [reason]"); } @@ -72,7 +72,7 @@ function inject(serv, player, options) { } } else if (results = command.match(/^pardon/)) { - results = command.match(/^pardon ([a-zA-Z0-9]+)/); + results = command.match(/^pardon ([a-zA-Z0-9_]+)/); if (!results) { player.chat("Usage: /pardon "); }