public function ban($channel, $hostmask = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($hostmask !== null) {
            $this->mode($channel, '+b '.$hostmask, $priority);
        } else {
            $this->mode($channel, 'b', $priority);
        }
        return $this;
    }
public function ban($channel, $hostmask = null, $priority = SMARTIRC_MEDIUM)
    {
        if ($hostmask !== null) {
            $this->mode($channel, '+b '.$hostmask, $priority);
        } else {
            $this->mode($channel, 'b', $priority);
        }
        return $this;
    }
public function ban ( $ channel , $ hostmask = null , $ priority = SMARTIRC_MEDIUM ) { if ( $ hostmask !== null ) { $ this -> mode ( $ channel , '+b ' . $ hostmask , $ priority ) ; } else { $ this -> mode ( $ channel , 'b' , $ priority ) ; } return $ this ; }
bans a hostmask for the given channel or requests the current banlist

The banlist will be requested if no hostmask is specified

@param string $channel
@param string $hostmask
@param integer $priority message priority, default is SMARTIRC_MEDIUM
@return Net_SmartIRC
@api
bans a hostmask for the given channel or requests the current banlist