mIRC Home    About    Download    Register    News    Help

Print Thread
#103365 19/11/04 03:12 PM
Joined: Nov 2004
Posts: 8
M
m1rcNb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Nov 2004
Posts: 8
Code:
alias listusers {
  write -c $chan $+ .txt | var %i 1 | while (%i <= $nick(#,0)) { 
    .timer 1 0 write -l $+ %i $chan $+ .txt $nick(#,%i) | inc %i 
  }
}


Oke here is my problem when doing /listusers it works.
however when trying to do something like

Code:
on *:JOIN:#:{ .listusers} 
#or
on *:JOIN:#:{/listusers}


It all stops. ? why .. i am forgetting something ?

Mod note: Fixed code tags

Last edited by Mentality; 19/11/04 08:08 PM.
#103366 19/11/04 03:13 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
do you have another join event somwhere with "halt" ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#103367 19/11/04 03:18 PM
Joined: Nov 2004
Posts: 8
M
m1rcNb Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Nov 2004
Posts: 8
Actually i do, so i should make that on 1: on 2: ect.. ?

[edit] That fixed it smile thanks alot

2 more question how would i go about, filtering out some nicks, lets say i want to exclude operators from that list.

Its not completing writing all the nicks that are in the channel. Why is that ?

Last edited by m1rcNb; 19/11/04 03:43 PM.
#103368 19/11/04 04:07 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
The problem was that you had no spaces between /listusers and }.

You cannot have an { or } touching your code, so:

Code:
on *:join:#:{ listusers }


is the correct format.


New username: hixxy

Link Copied to Clipboard