public function handleChanModeAddition(
        \Erebot\Interfaces\EventHandler             $handler,
        \Erebot\Interfaces\Event\Base\ChanModeGiven $event
    ) {
        $user       = $event->getTarget();
        $nick       = self::extractNick($user);
        $collator   = $this->connection->getCollator();
        $normNick   = $collator->normalizeNick($nick);
        $key        = array_search($normNick, $this->nicks);
        if ($key === false) {
            return;
        }

        $this->chans[$event->getChan()][$key][] =
            \Erebot\Utils::getVStatic($event, 'MODE_LETTER');
    }
public function handleChanModeAddition(
        \Erebot\Interfaces\EventHandler             $handler,
        \Erebot\Interfaces\Event\Base\ChanModeGiven $event
    ) {
        $user       = $event->getTarget();
        $nick       = self::extractNick($user);
        $collator   = $this->connection->getCollator();
        $normNick   = $collator->normalizeNick($nick);
        $key        = array_search($normNick, $this->nicks);
        if ($key === false) {
            return;
        }

        $this->chans[$event->getChan()][$key][] =
            \Erebot\Utils::getVStatic($event, 'MODE_LETTER');
    }
public function handleChanModeAddition ( \ Erebot \ Interfaces \ EventHandler $ handler , \ Erebot \ Interfaces \ Event \ Base \ ChanModeGiven $ event ) { $ user = $ event -> getTarget ( ) ; $ nick = self :: extractNick ( $ user ) ; $ collator = $ this -> connection -> getCollator ( ) ; $ normNick = $ collator -> normalizeNick ( $ nick ) ; $ key = array_search ( $ normNick , $ this -> nicks ) ; if ( $ key === false ) { return ; } $ this -> chans [ $ event -> getChan ( ) ] [ $ key ] [ ] = \ Erebot \ Utils :: getVStatic ( $ event , 'MODE_LETTER' ) ; }
Handles someone receiving a new status on an IRC channel,
for example, when someone is OPped.

\param Erebot::Interfaces::EventHandler $handler
Handler that triggered this event.

\param Erebot::Interfaces::Event::Base::ChanModeGiven $event
Event indicating someone's status changed
on an IRC channel the bot is currently on,
giving that person new privileges.

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Handles someone receiving a new status on an IRC channel for example when someone is OPped .