Normalize username strings in command parsing

This commit is contained in:
Brion Vibber 2010-11-29 16:44:40 -08:00
parent 3f0557aa8e
commit 3be352551a

View File

@ -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){