mIRC Home    About    Download    Register    News    Help

Print Thread
#38195 25/07/03 12:26 AM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
I want to know how to display what other channels all the users are on in a specific channel. How do I do this? Thanks!

#38196 25/07/03 12:33 AM
Joined: Feb 2003
Posts: 143
N
Vogon poet
Offline
Vogon poet
N
Joined: Feb 2003
Posts: 143
If I read what you typed correctly, you would have to make a script that does a whois on every user in a channel, and then use RAW *:*:{ } to set varibles for every whois and then reply them to another window or the same window. I myself think that this script isnt a good idea because you risk the chance of flooding yourself off pending on how many users are in the channel.


We don't just write the scripts, we put them to the test! (ScriptBusters)
#38197 25/07/03 12:40 AM
Joined: Apr 2003
Posts: 22
G
gsandan Offline OP
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Apr 2003
Posts: 22
Any other way?

#38198 25/07/03 04:20 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Are you asking about finding all the common channels every member of a certain channel share with each other? For example, UserA, UserB, UserC, UserD, UserE and UserF are all in #ChanA and no one else is in there, but all of them are also in #ChanF, #ChanS and #ChanY. Are you trying to return #ChanF,#ChanS,#ChanY by specifying #ChanA?

Or are you trying to compile a list of every visible (channels that are -ps) channel that you can see from the whois of everyone on the channel?

UserA on #ChanA #ChanB #ChanF
UserB on #ChanA #ChanC #ChanF
UserC on #ChanA #ChanD #ChanG
UserD on #ChanA #ChanB #ChanG
UserE on #ChanA #ChanB #ChanC
UserF on #ChanA #ChanC #ChanE

Result: #ChanB #ChanC #ChanD #ChanE #ChanF #ChanG (when triggered from #ChanA)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#38199 25/07/03 09:28 PM
Joined: Jan 2003
Posts: 41
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 41
No offence Hammer, but I don't think he understood that one :P

I know I didn't

#38200 26/07/03 12:53 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Ok, I'll try again. There are 2 ways (at least) to interpret the question:

1) Channels in common: find all common channels that everyone on a certain channel is in and ONLY the channels that everyone is in.

2) Different channels: find all the visible channels that everyone in a certain channel is in, regardless of whether or not others in the channel in question share any common members.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#38201 26/07/03 05:55 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias chans {
var %i 1
while (%i <= $nick($chan,0)) {
/who $nick($chan,%i)
inc %i
}
}
raw 352:*:{
//echo -a $6 - $2
}
usage: /chans
might clash with any other scripts using raw 352 though frown


new username: tidy_trax

Link Copied to Clipboard