mIRC Homepage
Posted By: bcancer on join whois - 11/08/08 11:14 AM
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 }

Posted By: landonsandor Re: on join whois - 11/08/08 01:44 PM
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
Posted By: bcancer Re: on join whois - 11/08/08 02:18 PM
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.
Posted By: landonsandor Re: on join whois - 11/08/08 03:36 PM
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
Posted By: bcancer Re: on join whois - 11/08/08 04:02 PM
Ok thanks landonsandor I will wait for more replies then thx.
Posted By: landonsandor Re: on join whois - 11/08/08 09:31 PM
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
Posted By: RusselB Re: on join whois - 11/08/08 11:44 PM
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?
Posted By: bcancer Re: on join whois - 12/08/08 02:01 AM
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.
Posted By: RusselB Re: on join whois - 12/08/08 04:41 AM
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.
Posted By: bcancer Re: on join whois - 12/08/08 02:53 PM
lol YES







Posted By: RusselB Re: on join whois - 12/08/08 11:08 PM
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.
Posted By: bcancer Re: on join whois - 13/08/08 01:21 PM
RusselB please explain to me how this will work?
Posted By: RusselB Re: on join whois - 13/08/08 11:39 PM
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.
© mIRC Discussion Forums