]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Normalize username strings in command parsing
authorBrion Vibber <brion@pobox.com>
Tue, 30 Nov 2010 00:44:40 +0000 (16:44 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 30 Nov 2010 00:44:40 +0000 (16:44 -0800)
lib/command.php

index ae69f04a1366b80d990110344374db868c40ef09..2a8075e7bacc11aa9d4f52b0b0b04f9f6ed1263e 100644 (file)
@@ -139,7 +139,7 @@ class Command
     {
         $user = null;
         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));
         if (!$user){