Just a simple common channel thingy, it gets all the channel that you and the person that has just joint, and it says it in the channel on which they joined
on *:JOIN:#: {
if ($nick == $me) { halt }
else {
unset %lol
var %total = $comchan($nick,0), %x = 1
while ( %x <= %total ) {
set %lol %lol $+ , $+ $comchan($nick,%x)
inc %x
}
msg # $nick is in the following channels that i am in: $replace(%lol,$chr(44),$chr(32))
}
}
Declare %lol as a local var so no need to unset them, so include \"%lol\" in the \"var ....\" line
Change this line
set %lol %lol $+ , $+ $comchan($nick,%x)
to
%lol = %lol $comchan($nick,%x)
so there is no need to use $replace as the channels are already being added in the variable separated by a space.
Use \"!\" in your ON Join event which means \"except you\"
on !*:JOIN:#: {
:)