mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 24
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Jan 2004
Posts: 24
Hello, I'm trying to make an alias that echos me all the addresses of all the nicknames in the channel.
This is what I made (it doesn't work)
faddnick { var %a = $ialchan(*!*@*,$1,0), %i = 0, %c = $nick($1,0), %n | while (%c > %i) { var %i = %i + 1, %n = $addtok(%n,$ialchan(*!*@*,%c,%i),32) } | tokenize 32 %n | say Addresses: %n }
If anyone can help, please.
Thanks

Joined: Mar 2004
Posts: 111
Z
Vogon poet
Offline
Vogon poet
Z
Joined: Mar 2004
Posts: 111
This will echo them on a new line each time, nice and simple.
Code:
mirchelp_listaddress {
  var %nc $nick($chan,0)
  var %i 1
  while (%i <= %nc) {
    echo -a $nick($chan,%i) $+ : $address($nick($chan,%i),5)
    inc %i
  }
  echo -a Total Nicks: %nc
}


Now this isnt exactly what you want, from what i can tell you want it to display like "address1, address2, address3" i was ganna code it like that but the characters fill up quickly, all you gatta do is check the chr amount and if its too big then display it on a new line, if you want it done like that i can prob get off my lazy @ss and do it for ya heh, but as far as getting yurs working... which is prob what you want, i dont see anything offhang, GL smile

Joined: Jan 2004
Posts: 24
W
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Jan 2004
Posts: 24
okay thanks


Link Copied to Clipboard