Normalize username strings in command parsing
This commit is contained in:
		@@ -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){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user