public function onNick(Event $event)
    {
        $msg = $event->getMessage();

        $oldNick = $msg['nick'];
        $newNick = $msg['params']['nickname'];

        $this->storage->updateNickname($oldNick, $newNick);
    }
public function onNick(Event $event)
    {
        $msg = $event->getMessage();

        $oldNick = $msg['nick'];
        $newNick = $msg['params']['nickname'];

        $this->storage->updateNickname($oldNick, $newNick);
    }
public function onNick ( Event $ event ) { $ msg = $ event -> getMessage ( ) ; $ oldNick = $ msg [ 'nick' ] ; $ newNick = $ msg [ 'params' ] [ 'nickname' ] ; $ this -> storage -> updateNickname ( $ oldNick , $ newNick ) ; }
Tracks users changing nicks

@param  Event  $event Event object
Tracks users changing nicks