mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 11:40:46 +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/)) {
|
else if (results = command.match(/^kick/)) {
|
||||||
results = command.match(/^kick ([a-zA-Z0-9]+)(?: (.*))?/);
|
results = command.match(/^kick ([a-zA-Z0-9_]+)(?: (.*))?/);
|
||||||
if (!results) {
|
if (!results) {
|
||||||
player.chat("Usage: /kick <player> [reason]");
|
player.chat("Usage: /kick <player> [reason]");
|
||||||
}
|
}
|
||||||
|
|
@ -46,7 +46,7 @@ function inject(serv, player, options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (results = command.match(/^ban/)) {
|
else if (results = command.match(/^ban/)) {
|
||||||
results = command.match(/^ban ([a-zA-Z0-9]+)(?: (.*))?/);
|
results = command.match(/^ban ([a-zA-Z0-9_]+)(?: (.*))?/);
|
||||||
if (!results) {
|
if (!results) {
|
||||||
player.chat("Usage: /ban <player> [reason]");
|
player.chat("Usage: /ban <player> [reason]");
|
||||||
}
|
}
|
||||||
|
|
@ -72,7 +72,7 @@ function inject(serv, player, options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (results = command.match(/^pardon/)) {
|
else if (results = command.match(/^pardon/)) {
|
||||||
results = command.match(/^pardon ([a-zA-Z0-9]+)/);
|
results = command.match(/^pardon ([a-zA-Z0-9_]+)/);
|
||||||
if (!results) {
|
if (!results) {
|
||||||
player.chat("Usage: /pardon <player>");
|
player.chat("Usage: /pardon <player>");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue