Normalize username strings in command parsing
This commit is contained in:
parent
3f0557aa8e
commit
3be352551a
@ -139,7 +139,7 @@ class Command
|
|||||||
{
|
{
|
||||||
$user = null;
|
$user = null;
|
||||||
if (Event::handle('StartCommandGetUser', array($this, $arg, &$user))) {
|
if (Event::handle('StartCommandGetUser', array($this, $arg, &$user))) {
|
||||||
$user = User::staticGet('nickname', $arg);
|
$user = User::staticGet('nickname', Nickname::normalize($arg));
|
||||||
}
|
}
|
||||||
Event::handle('EndCommandGetUser', array($this, $arg, &$user));
|
Event::handle('EndCommandGetUser', array($this, $arg, &$user));
|
||||||
if (!$user){
|
if (!$user){
|
||||||
|
Loading…
Reference in New Issue
Block a user