mIRC Home    About    Download    Register    News    Help

Print Thread
#212663 30/05/09 01:13 AM
Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
Here what I got right now
Code:
 raw 353:*: {
  var %looptext $remove($3-,:,',.,@,$chr(37),+)
  var %x $numtok(%looptext,32)
  while (%x > 0) { whois $gettok(%looptext,%x,32) | dec %x }
} 


The thing is it Scans the whole network how can I get it to scan just the room it joins or is in ?

Thanks smile

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Raw 353 returns for a NAMES request for a channel, or when you initially join a channel. It contains a list of every user on the channel.
So, how is that possible to scan the whole freakin' network?

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
What is your desired outcome here?

This code will whois people in the room the raw 353 event happens in. If it whoises everyone on the network check with that IRC's administrator. People tweak their server's software.

Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
all I want is a whois on person in the room you join and onjoin

Say I join %#Blah it will whois everyone who in there only once then whois per person who join that room

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I think your best choice is to use raw 366 with a loop to get the returned nicks in the channel via whois, rather than using raw 353.

Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
Code:
 raw 366:*: { 
  var %chan = $2 | if ($eval(% $+ WhoChan. $+ %chan,2)) { .unset $eval(% $+ WhoChan. $+ %chan,1) | var %i = 1,  %nick
    while ($nick(%chan,%i)) { %nick = $v1 | if (%nick != $me) { whois %nick } | inc %i } 
  }
}
 


But this don't seems to work
Any idea?

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
This is a fair bit longer, but I think it covers what you're asking for.
Code:
on me:*:join;#:{
  .enable #who_chan
  .who $chan
}
on !*:join:#:{
  .enable #whois_chan
  .whois $nick
}
#who_chan off
raw 352:*:{
  if $6 != $me {
    .hadd -m Who_chan $6 $true
  }
}
raw 315:*:{
  .disable #who_chan
  haltdef
  var %a = 1, %b = $hget(Who_chan,0).item
  while %a <= %b {
    .enable #whois_chan
    .whois $hget(Who_chan,%a).item
    inc %a
  }
}
#who_chan end
#whois_chan off
raw 318:*:{
  .disable #whois_chan
  haltdef
}
raw *:*:{
  if $istok(301 310 311 312 313 317,$numeric,32) {
    echo -a $2-
  }
}
#whois_chan end

When you join a channel, the IAL is forced to update through the usage of the /who
Next, each nick that is in the channel, skipping your own nick, has a /whois performed on it.
The information returned from the /whois is displayed in your active window, since you didn't indicate what you wanted done with that information.

If a nick joins the channel after you did, then that nick is whoised.

If I misunderstood what you were wanting, or if I missed details that you did give, let me know and/or clarify, and I'll do my best.

Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
it don't work fot buzzen chat network

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Buzzen.. Pardon my language, but FFS.. I hate trying to write things for people on Buzzen as that is the only network (that I've encountered) that the scripts work on.
Due to problems with either Buzzen or my ISP (and I'm suspecting Buzzen), I am unable to create an account on Buzzen in order to connect and test.

Sorry, but you will have to either try your own hand at altering my script, or find someone else that has access and can write it for you.

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Buzzen has no whois.

Joined: Dec 2007
Posts: 61
P
PO3 Offline OP
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2007
Posts: 61
not for users no but for staff yes

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Yep and its lame. It gives you all whois info for each channel they are in as seperate raw events so if they are in 10 rooms you get something like 40 raw events.

Personally I would use the who. Raw 352. You dont need a while loop you just whois the nickname in the event.


Link Copied to Clipboard