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


Postby vodkaplayer » Fri May 16, 2008 4:06 am

usage: /unbanall or /unbanall #chan
if the ibl isn't filled the script update the list immediatly by this command /mode #chan +b

raw 368 VodkaplayeR #aide.script :End of Channel Ban List
this trigger when finished to update the ban list
we check for the variable matching
then unset it and calling back the alias /unbanall $2
Code: Select all
alias unbanall {
  !var %c = $iif($1,$1,$active),%i = 1
  if (!%c) { !echo -as insufficient parameter | !return }
  if (%c !ischan) { !echo -as Invalid window (not on channel). | !return }
  if ($me !isop %c) { !echo %c I'm not an op on %c | !return }
  if (!$chan(%c).ibl) { !set %update.ibl %c | !.mode %c +b | !return }
  if (!$ibl(%c,0)) { !echo %c the banlist is empty on %c $+ . | !return }
  while ($ibl(%c,%i)) {
    !var %b = $addtok(%b,$v1,32) | !inc %i
    if ($numtok(%b,32) == $modespl) { !mode %c $+(-,$str(b,$v2)) %b | !var %b }
  if ($numtok(%b,32)) { !mode %c $+(-,$str(b,$v1)) %b }
  !echo %c $ibl(%c,0) $iif($ibl(%c,0) > 1,bans have,ban has) been removed.
raw 368:& & & of Channel Ban List: { if ($2 == %update.ibl) { !unset %update.ibl | unbanall $2 | !haltdef } }

to get help join #aide.script at Quakenet.
de rien :)
Last edited by vodkaplayer on Wed Oct 07, 2009 8:42 am, edited 2 times in total.

Re: /unbanall

Postby Lukemob » Sat May 24, 2008 11:09 am

I haven't tried this script, but looks short, easy and also working... that's how the script should be.

Nice work man.

Re: /unbanall

Postby axelwai » Tue Jun 10, 2008 12:37 pm

Cant you just use:
Code: Select all
alias unbanall { //mode # -b * }

A lot easier...

Re: /unbanall

Postby Lukemob » Tue Jun 17, 2008 3:07 pm

All the users really don't know much about IRC, neither about MSL. This scripts is better for the new users, to get into scripting.

Re: /unbanall

Postby Lukemob » Tue Jun 17, 2008 3:09 pm

And one more thing I'd say... the scripting is not only a work. It's also a fun and for many it's also a hobby. Why would you be searching the easiest way in something you want to give a time to?

Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 0 guests