mIRC Home    About    Download    Register    News    Help

Print Thread
#203298 11/08/08 11:14 AM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
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.
bcancer #203300 11/08/08 01:44 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
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.

bcancer #203302 11/08/08 03:36 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
Ok thanks landonsandor I will wait for more replies then thx.

bcancer #203314 11/08/08 09:31 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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 smile


Those who fail history are doomed to repeat it
bcancer #203321 11/08/08 11:44 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
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?

RusselB #203326 12/08/08 02:01 AM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
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.

bcancer #203329 12/08/08 04:41 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
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.

RusselB #203344 12/08/08 02:53 PM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
lol YES








bcancer #203363 12/08/08 11:08 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
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 #203380 13/08/08 01:21 PM
Joined: Oct 2007
Posts: 102
B
bcancer Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2007
Posts: 102
RusselB please explain to me how this will work?

bcancer #203391 13/08/08 11:39 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
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.


Link Copied to Clipboard