mIRC Home    About    Download    Register    News    Help

Print Thread
#14333 06/03/03 02:34 PM
Joined: Feb 2003
Posts: 33
G
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 33
Code:
 raw 332:*:{
  set %joinchan $2
  echo -a 11~(14 Succesfully Joined:0 $2 $+ , 14Total Nicks in $2 $+ :0 $nick( %joinchan ,0) 11)~
  echo -a 11~(14 Topic is:0 $3- 11)~
  echo -a test all nicks $nick( $2 , a) ops $nick( $2 , o) regular $nick( $2 ,0,r)  voice $nick( $2 ,0,v)  
  halt
}

Hammer although u explained alot for the channel info etc ... i didn't understand it but i found somthing else with the raws ...
but there is some problem in it

echo -a test all nicks $nick( $2 , a) ops $nick( $2 , o) regular $nick( $2 ,0,r) voice $nick( $2 ,0,v)

seems to be incorrect :s
Code:
~( Succesfully Joined: #rld, Total Nicks in #rld: 1 )~
~( Topic is: RLD - UP )~
test all nicks ops regular 1 voice 0
~( Generated At Thu Mar 2003 13:27:55 By: Sl0bbe )~

(there where 7voices in channel and 0regular
there where 3 admins and 4 ops...)
whats wrong in it?

this line is also incorrect: ~( Succesfully Joined: #rld, Total Nicks in #rld: 1 )~


#14334 06/03/03 02:35 PM
Joined: Feb 2003
Posts: 33
G
Ameglian cow
OP Offline
Ameglian cow
G
Joined: Feb 2003
Posts: 33
btw i found the codes in help of mirc:
$nick(#,N/nick,aohvr,aohvr)
Returns Nth nickname in the channels nickname listbox on channel #.

Properties: color, pnick

$nick(#mIRC,0) returns the the total number of nicknames on #mIRC
$nick(#mIRC,1) returns the 1st nickname on #mIRC

Both aohvr parameters are optional. The first specifies which nicks you'd like included, and the second specifies the nicks you'd like excluded, where:

a = all nicks, o = ops, h = halfops, v = voiced, r = regular

$nick(#mIRC,1,o) return the first op on #mIRC
$nick(#mIRC,0,a,o) return the total number of nicks not including ops on #mIRC

The pnick property returns the nickname in a [email].@%+nick[/email] format.

Note: See the $prefix identifier for more information.

so i don't c anything wrong in my code ..

Last edited by Gods_Hell; 06/03/03 02:36 PM.

#14335 07/03/03 12:30 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
you might try changing the spacing on the lines for instance

$nick( %joinchan ,0)
$nick(%joinchan ,0)
you have spaces between ( %joinchan and also between
%joinchan and the , try tightening it all up $nick(%joinchan,4) etc

#14336 07/03/03 05:31 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
The main problem you are having is that you are doing the evaluation too early in the join process. Here is the sequence of events (on the ircds I have tested it on):

/join #channel
on me:JOIN:#:
; Topic
raw 332:*:
; Topic set by
raw 333:*:
; /NAMES $chan
raw 353:*:
; End of /NAMES list
raw 366:*:
; Channel modes
raw 324:*:
; Channel creation time
raw 329:*:

and if you are filling the IAL and IBL,

; Who $chan
raw 352:*:
; End of /WHO list
raw 315:*:
; Ban list
raw 367:*:
; End of ban list
raw 368:*:

Now then, you're trying to do your stats after you receive only the first piece of information - the topic. You still haven't received the /NAMES list, so your mIRC doesn't yet know which nicks are in the channel. Therefore, you must wait until AT LEAST raw 366 to do nick counts.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard