mIRC Home    About    Download    Register    News    Help

Print Thread
#44203 26/08/03 12:17 PM
Joined: Feb 2003
Posts: 34
S
ST3V3 Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 34
Is it possible to set all the nicks in a channel your on into a variable in this format? Nick1,Nick2,Nick3,Nick4 etc?

#44204 26/08/03 12:20 PM
Joined: Aug 2003
Posts: 136
Vogon poet
Offline
Vogon poet
Joined: Aug 2003
Posts: 136
I got this code in a search through the forum
Code:
alias list.ial {
  window -k @Internal
  titlebar @Internal Address List
  set -u %i 0
  :next.i
  inc -u %i
  if ($ial(*,%i)) {
    if (%i < 10) aline -p @Internal $chr(160) $+ %i $+ . $ial(*,%i)
    else aline -p @Internal %i $+ . $ial(*,%i)
    goto next.i
  }
}
  


In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.
#44205 26/08/03 03:11 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Ial might not be the best way, as that includes every nickname from all channels. You may try:

Code:
alias nicks {
  var %chan = $iif($1, $1, $active), %n = 1
  while ($nick(%chan, %n)) {
    var %list = $addtok(%list, $ifmatch, 44)
    /inc %n
  }
  return %list
}

Use:
//echo $nicks          - Nicknames In Active Channel
//echo $nicks(#mychan) - Nicknames In Specified Channel


That should work, but beware of channels with a lot of nicknames. The variable can only hold so many.


-KingTomato

Link Copied to Clipboard