mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 14:01:13 +00:00
player names can contain underscores
This commit is contained in:
parent
8723ee27b4
commit
02e6258e25
1 changed files with 3 additions and 3 deletions
|
|
@ -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 <player> [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 <player> [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 <player>");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue