Id: 10358; Nick: Mervolic; Timestamp: 2008-05-11 21:41:00; Pasted as: mIRC
Description: Usage: //echo -a $userchans(name)

Loops through .INI files located in "<script directory>/chans/", and returns the name of the INI file, without ".ini".
1
2
3
4
5
6
7
8
9
10
11
alias userchans {
  var %i = $findfile($scripdirchans,*.ini,0), %x, %o
  while (%i) {
    var %x = $findfile($scriptdirchans,*.ini,%i)
    if ($ini(%x,users,$$1)) {
      var %o = $addtok(%o,$chr(35) $+ $left($nopath(%x),-4),32)
    }
    dec %i
  }
  return %o
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)