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

        if (!isset($msg['nick'])) {
            return;
        }

        $nick = $msg['nick'];

        $this->storage->removeUser($nick);
    }
public function onQuit(Event $event)
    {
        $msg = $event->getMessage();

        if (!isset($msg['nick'])) {
            return;
        }

        $nick = $msg['nick'];

        $this->storage->removeUser($nick);
    }
public function onQuit ( Event $ event ) { $ msg = $ event -> getMessage ( ) ; if ( ! isset ( $ msg [ 'nick' ] ) ) { return ; } $ nick = $ msg [ 'nick' ] ; $ this -> storage -> removeUser ( $ nick ) ; }
Tracks users quitting a server

@param  Event  $event Event object
Tracks users quitting a server