bool imc_isignoring( CHAR_DATA * ch, const char *ignore )
{
IMC_IGNORE *temp;
for( temp = FIRST_IMCIGNORE( ch ); temp; temp = temp->next )
{
if( !strcasecmp( imc_nameof( temp->name ), "*" ) )
{
if( !strcasecmp( imc_mudof( temp->name ), imc_mudof( ignore ) ) )
return TRUE;
}
if( !strcasecmp( imc_mudof( temp->name ), "*" ) )
{
if( !strcasecmp( imc_nameof( temp->name ), imc_nameof( ignore ) ) )
return TRUE;
}
if( !str_prefix( ignore, temp->name ) )
return TRUE;
}
return FALSE;
}
That should stop an individual from showing up on any of the channels if said person has the individual on imcignore. imcignore is case sensitive, so "imcignore add Kayle@HW" not kayle@hw
I only use Kayle as an example….
any light on making in not case sensitive would be appreciated.
this was in the freedom client, not sure code wise on others…