public function handleCapabilities(
        \Erebot\Interfaces\EventHandler     $handler,
        \Erebot\Event\ServerCapabilities    $event
    ) {
        $module = $event->getModule();
        if ($module->hasExtendedNames()) {
            $this->sendCommand('PROTOCTL NAMESX');
        }
        if ($module->hasUserHostNames()) {
            $this->sendCommand('PROTOCTL UHNAMES');
            $this->hasUHNAMES = true;
        }
    }
public function handleCapabilities(
        \Erebot\Interfaces\EventHandler     $handler,
        \Erebot\Event\ServerCapabilities    $event
    ) {
        $module = $event->getModule();
        if ($module->hasExtendedNames()) {
            $this->sendCommand('PROTOCTL NAMESX');
        }
        if ($module->hasUserHostNames()) {
            $this->sendCommand('PROTOCTL UHNAMES');
            $this->hasUHNAMES = true;
        }
    }
public function handleCapabilities ( \ Erebot \ Interfaces \ EventHandler $ handler , \ Erebot \ Event \ ServerCapabilities $ event ) { $ module = $ event -> getModule ( ) ; if ( $ module -> hasExtendedNames ( ) ) { $ this -> sendCommand ( 'PROTOCTL NAMESX' ) ; } if ( $ module -> hasUserHostNames ( ) ) { $ this -> sendCommand ( 'PROTOCTL UHNAMES' ) ; $ this -> hasUHNAMES = true ; } }
Handles server capabilities.

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

\param Erebot::Event::ServerCapabilities $event
An event referencing a module that can determine
the IRC server's capabilities, such as
Erebot::Module::ServerCapabilities.

@SuppressWarnings(PHPMD.UnusedFormalParameter)
Handles server capabilities .