self ban protection, ban protect

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

self ban protection, ban protect

Postby Cristian » Sat Jul 19, 2008 6:05 pm

Settings:
    1 = unban ban
    2 = unban ban/deop nick
    3 = unban ban/ban nick/deop nick/kick nick (default)

    Reason = sp00fed ban protection (default)


Tested and works with mirc version 6.15

Code: Select all
alias -l react { return 3 }
alias -l reason { return sp00fed ban protection }


on *@:BAN:#: {
  if ($banmask iswm $address($me,5)) {
    if ($react == 1) {
      .mode $chan -b $banmask
    }
    elseif ($react == 2) {
      .mode $chan -ob $nick $banmask
    }
    elseif ($react == 3) {
      .mode $chan -ob+b $nick $banmask $address($nick,1)
      .kick $chan $nick $iif($reason,$ifmatch,sp00fed ban protection)
    }
  }
}
banprotection.rar
(387 Bytes) Downloaded 563 times
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: self ban protection, ban protect

Postby Lukemob » Sat Jul 26, 2008 5:02 pm

Ehm, It's nice script Sumsar... but I'd just recommend using:

Code: Select all
ban -k $chan $nick 1 $iif($reason,$ifmatch,sp00fed ban protection)


instead of:

Code: Select all
.mode $chan -ob+b $nick $banmask $address($nick,1)
.kick $chan $nick $iif($reason,$ifmatch,sp00fed ban protection)


Mainly because it's faster, and in handling self bans decides every second ;)

But well - Everyone codes own way... Keep up the good work
Lukemob
 

Re: self ban protection, ban protect

Postby Cristian » Sat Jul 26, 2008 5:09 pm

what can I say, I'm fallen into the dark side of TCL ;)
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: self ban protection, ban protect

Postby Lukemob » Sat Jul 26, 2008 5:12 pm

Yes, rather continue TCL than MSL ... TCL has a future :) I'd always want to learn it :)
Lukemob
 

Re: self ban protection, ban protect

Postby Cristian » Sat Jul 26, 2008 5:16 pm

I think the same, but toying around with MSL is fun too.
Cristian
proof of advance
proof of advance
 
Posts: 282
Joined: Sun Nov 04, 2007 3:02 pm
Location: Denmark
Authnick: Sumsar

Re: self ban protection, ban protect

Postby PRADA » Thu Jul 31, 2008 8:12 am

Lukemob wrote:Ehm, It's nice script Sumsar... but I'd just recommend using:

Code: Select all
ban -k $chan $nick 1 $iif($reason,$ifmatch,sp00fed ban protection)


instead of:

Code: Select all
.mode $chan -ob+b $nick $banmask $address($nick,1)
.kick $chan $nick $iif($reason,$ifmatch,sp00fed ban protection)


Mainly because it's faster, and in handling self bans decides every second ;)

But well - Everyone codes own way... Keep up the good work



Obviously you havnt got much knowledge about whats faster and why

the mode $chan -ob+b is clearly faster then ban -k $chan, since the ban -k $chan needs(tries)to update the address from its ial.. everyone knows that..
PRADA
 

Re: self ban protection, ban protect

Postby Lukemob » Fri Aug 15, 2008 5:46 pm

What are you exactly trying to do... is just flaunt. You probably didn't even try it, or maybe you did... I really don't know/care. Next time, don't say "Everybody knows", if everybody would know, nobody would use the forum.

Next thing is, I'm more to TCL than MSL (as MSL is for beginners).

Thanks... dear user.
Lukemob
 

Re: self ban protection, ban protect

Postby PRADA » Fri Aug 15, 2008 8:40 pm

Lukemob wrote:What are you exactly trying to do... is just flaunt. You probably didn't even try it, or maybe you did... I really don't know/care. Next time, don't say "Everybody knows", if everybody would know, nobody would use the forum.

Next thing is, I'm more to TCL than MSL (as MSL is for beginners).

Thanks... dear user.

everything i say i know, iv tried.
sorry, but pay more attention to the ones speaking in channels like #help.script/#tcl or summin

you might learn something lukemob:). as iv tought you many things before

(Fendo FTW!!!)
PRADA
 

Re: self ban protection, ban protect

Postby Lukemob » Fri Aug 15, 2008 8:51 pm

Wow man, I see I should give you an Administrator status as fast as possible...

You think in these channels you provided above stay only skilled coders? Well, I should be looking there more often, to get help (As you do)...

Lol, you're funny man. Oh, no, my dear teacher... I'm going to learn, right. Otherwise I make you be mad.

Stop acting like a vaunted child, please.

Thank you for paying attention...
Wishing a nice rest of the day!
Lukemob
 

Re: self ban protection, ban protect

Postby Lukemob » Fri Aug 15, 2008 9:09 pm

Oh, btw, how comes you are banned? Who banned you?

If you want me to unban you, send me an email to: PRADA_is_noob@oh-no.itstrue.org
Lukemob
 

Next

Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 1 guest

cron