massvoice using /names #chan

Paste Your small code(s) here, ex. small aliases, identifiers

massvoice using /names #chan

Postby vodkaplayer » Sun Jul 20, 2008 4:27 pm

hmm...
test it :)

Code: Select all
alias massvoice {
  var %c = $iif($1,$1,$active)
  if ($me !ison %c) { echo -a *** /massvoice, I'm not on %c $+ . | return }
  if ($me !isop %c) { echo %c *** /massvoice, I'm not an Opérator on %c $+ . | return }
  if (!$nick(%c,0,a,ov)) { echo %c There are no Regulars user to voice on %c | return }
  else { set %names.update %c | raw -q NAMES %c }
}
raw 353:& = *: {
  if (%names.update == $3) {
    var %i = 1
    while ($gettok($4-,%i,32)) {
      if (@ !isin $v1) && (+ !isin $v2) {
        hadd -m mass nicks $hget(mass,nicks) $gettok($4-,%i,32)
        if ($numtok($hget(mass,nicks),32) == $modespl) {
          raw MODE $3 $+(+,$str(v,$v2)) $hget(mass,nicks)
          hdel mass nicks
        }
      }
      inc %i
    }
  }
}
raw 366:& & End of /NAMES list.: {
  if (%names.update == $2) {
    if ($numtok($hget(mass,nicks),32)) {
      raw MODE $2 $+(+,$str(v,$v1)) $hget(mass,nicks)
    }
    unset %names.update | hfree mass
  }
}
vodkaplayer
 

Re: massvoice using /names #chan

Postby Cristian » Tue Jul 22, 2008 6:12 pm

I have tried it, you should put on what version its tested on, so users later on, can view what mirc version they at least should have.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar


Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 3 guests

cron