Ok, here's what I'd like to do: Be able to snoop in on clan talk from the person your spying on.
Currently if your spy on say frequency 111.111, so you see all tells too and from that person but you don't see any channel usage.
In do_tell and do_reply it calls show_spys( ch, victim, argument ); however they don't go though the channel system.
Which the main function of show_spys look like this:
void show_spys( CHAR_DATA * ch, CHAR_DATA * victim, const char *tell )
if( IS_NPC( ch ) || IS_NPC( victim ) || IS_IMMORTAL( ch ) || IS_IMMORTAL( victim ) )
for( och = first_char; och; och = och->next )
if( IS_NPC( och ) || !och->comfreq )
if( !str_cmp( och->pcdata->tell_snoop, ch->comfreq ) || !str_cmp( och->pcdata->tell_snoop, victim->comfreq ) )
ch_printf( och, "&B[&cINTERCEPTED MESSAGE&b]\r\n&B(&YSent: &G&W%s&B) (&Yto: &G&W%s&B) (&Ymessage&B) &G&W %s\r\n",
ch->comfreq, victim->comfreq, tell );
I'm at a bit of a loss since clan_talk is managed though channels, would I have to rip clantalk out of the channel system and treat it differently, or might there be an easier way to snoop on in?