mIRC Home    About    Download    Register    News    Help

Print Thread
#251907 08/03/15 01:28 PM
Joined: Mar 2015
Posts: 7
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Mar 2015
Posts: 7
Hi I am trying to get a list of all the users but I am only able to get this when I am joining the channel. I have tried both using NAMES and WHO, both saying unknown command(which I find wierd as the twitch api says /WHO calls the event 353.. )

So how is it possible to get a list of users on a channel(and not by /join) ?

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Try to use this code:

Usage: //echo -a Total Users: $get_users(#CHANNEL)

or

Usage 2: //echo -a Users: $get_users(#CHANNEL).nicks

Code:
alias get_users { ; by westor
  if (!$1) { return 0 }
  if ($status !== connected) { return 0 }
  if (!$chan(0)) { return 0 }
  if ($me !ison $1) { return 0 }
  var %t = $nick($1,0)
  if (!$prop) { return $iif(%t,$v1,0) }
  if ($prop == nicks) {
    var %i = 1
    while (%i <= %t) {
      var %n = $nick($1,%i)
      if (%n) { var %tot = $addtok(%tot,%n,32) }
      inc %i
    }
    if (%tot) { return %tot }
    elseif (!%tot) { return 0 }
  }
}


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-

Link Copied to Clipboard