Can I redirect this whois from a script in #chat to another script thats not in the same channel that will read the whois ?
on !*:join:#chat: { whois $nick }
do you mean you want a script from another channel to:
1) maipulate the output
OR
2)When you're in another channel, to whois everyone who comes in
I have a script in a S+ channel on dalnet and I want to send the whois to another script to read it thats not in the same channel.
maybe save the ouput in a file and have the other channel's script be able to access & use it. I would imagine (tho have never used them) Has tables might not be a bad way to do it, but others with more knowledge of the subject will give you more input
Ok thanks landonsandor I will wait for more replies then thx.
no problem, I really dont use mirc much these days, tho I keep installing the updated ones. Heck it's free, I already paid my one time registration, so why not stay up to date
Most scripts are not channel specific, and even if the script is channel specific, the returns from a /whois are network specific, not channel.
Can you show us the other script, or, if you don't have one yet, tell us what it is you want the other script to do with the information that is returned by the /whois command?
When I say script i mean mirc script :P
I want my second script to check the whois from the first script thats in a +S channel and ban the nick that invites if that nick is in my channel.
Ok, I think I understand, but just in case:
1) Person A invites Person B into Channel C
2) If Person B is on Channel D, then person A gets banned from Channel C
Let me know if this is a correct understanding or not.
on !@*:join:#channel1:{
if $nick ison #channel2 && $iil($chan,$nick).by {
.ban -k $chan $iil($chan,$nick).by Invited $nick who is on #channel2
}
}
This worked with my testing, but that may be due to the fact that I was testing it on a channel where I am the founder, so there is no one on the channel I can't kick/ban.
If you have Ops and the person that does the invite has admin or founder access, then you won't be able to kick/ban them.
RusselB please explain to me how this will work?
on !@*:join:#channel1:{
;when someone other than me enters the room while I have full ops in #channel1
if $nick ison #channel2 && $iil($chan,$nick).by {
;check to see if the person is on #channel2 and see if they are in the inivte list for #channel1
.ban -k $chan $iil($chan,$nick).by Invited $nick who is on #channel2
;if they are, get the name of the address of the person that invited them, then ban that address from #channel1
}
}
; prefixed lines are comments, so this can be used in mIRC only having to change the actual channel names.