This little script will tell you what channel(s) a user is on when he/she joins your room. The channel information is echoed to you. For example:
alias channelcheck {
if ($1 == $null) { /echo -at *** Invalid Command. Format: /channelcheck on|off. | halt }
if ($1 == on) { /enable #channelcheck | /echo -at *** Channel Check now set to ON. | halt }
if ($1 == off) { /disable #channelcheck | /echo -at *** Channel Check now set to OFF. | halt }
}
#channelcheck on
on !*:JOIN:#: {
%channelcheck = on
%channelcheckchan = $chan
whois $nick
}
raw 319:*:if (%channelcheck) { .echo -t %channelcheckchan *8 $2 is on 4*9*12* $3- 12*9*4* | unset %channelcheck | halt }
raw 311:*:if (%channelcheck) { halt }
raw 312:*:if (%channelcheck) { halt }
raw 313:*:if (%channelcheck) { halt }
raw 317:*:if (%channelcheck) { halt }
raw 318:*:if (%channelcheck) { halt }
raw 310:*:if (%channelcheck) { halt }
raw 301:*:if (%channelcheck) { halt }
#channelcheck end