|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
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 }
Last edited by bcancer; 11/08/08 12:01 PM.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
Ok thanks landonsandor I will wait for more replies then thx.
|
|
|
|
Joined: Dec 2002
Posts: 1,544
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,544 |
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 
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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?
|
|
|
|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
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.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
Joined: Oct 2007
Posts: 102
Vogon poet
|
OP
Vogon poet
Joined: Oct 2007
Posts: 102 |
RusselB please explain to me how this will work?
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
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.
|
|
|
|
|