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

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

        $nick = $msg['nick'];
        $chan = $msg['params']['channels'];

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

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

        $nick = $msg['nick'];
        $chan = $msg['params']['channels'];

        $this->storage->removeUser($nick, $chan);
    }
public function onPart ( Event $ event ) { $ msg = $ event -> getMessage ( ) ; if ( ! isset ( $ msg [ 'nick' ] ) ) { return ; } $ nick = $ msg [ 'nick' ] ; $ chan = $ msg [ 'params' ] [ 'channels' ] ; $ this -> storage -> removeUser ( $ nick , $ chan ) ; }
Tracks users leaving a channel

@param  Event  $event Event object
Tracks users leaving a channel