Miscellany
public text v1 · immutablecase '!getid':
$sNick = $split[ 1 ];
if( strlen( $sNick ) == 0 )
{
$this->PrivMsg( 'Usage: !getid PlayerName' );
break;
}
$aIDArray = array_flip( $this->Players );
if( !isset( $aIDArray[ $sNick ] ) )
{
$this->PrivMsg( '4No player with the name "' . $sNick . '" has been found.' );
break;
}
$this->PrivMsg( '4ID of player "' . $sNick . '": ' . $aIDArray[ $sNick ] );
break;