public function releaseList(\Erebot\Module\Wordlists\Wordlist $list)
    {
        $nameType = \Erebot\Module\Wordlists\Wordlist::METADATA_NAME;
        $name = $list->getMetadata($nameType);
        if (!isset(self::$refs[$name])) {
            throw new \Erebot\NotFoundException('No such list');
        }

        if (--self::$refs[$name]['counter'] <= 0) {
            unset(self::$refs[$name]);
        }
    }
public function releaseList(\Erebot\Module\Wordlists\Wordlist $list)
    {
        $nameType = \Erebot\Module\Wordlists\Wordlist::METADATA_NAME;
        $name = $list->getMetadata($nameType);
        if (!isset(self::$refs[$name])) {
            throw new \Erebot\NotFoundException('No such list');
        }

        if (--self::$refs[$name]['counter'] <= 0) {
            unset(self::$refs[$name]);
        }
    }
public function releaseList ( \ Erebot \ Module \ Wordlists \ Wordlist $ list ) { $ nameType = \ Erebot \ Module \ Wordlists \ Wordlist :: METADATA_NAME ; $ name = $ list -> getMetadata ( $ nameType ) ; if ( ! isset ( self :: $ refs [ $ name ] ) ) { throw new \ Erebot \ NotFoundException ( 'No such list' ) ; } if ( -- self :: $ refs [ $ name ] [ 'counter' ] <= 0 ) { unset ( self :: $ refs [ $ name ] ) ; } }
Releases a wordlist.

This decreases the reference counter associated
with the list and removes it from the cache
entirely when the counter reaches zero.

\param Erebot::Module::Wordlists::Wordlist $list
Wordlist to release.
Releases a wordlist .