Skip to content
MSN

Join Flood Halts

A TG007 community discussion started by UAE_Boy.

Discussion 5 posts
Page 1 of 1
Open
Topic #6723 · 5 published posts · 727 views

Good day everyone <wo0t>

 

 

 

I use a sockread protection against "Mass Joins" but i can't seem to halt for "owners/hosts" nor halt if i am participent...

 

I've tried everything but it doesn't seem to work ..

 

     if ($sockname != msn.server.999) .timermsn.chk. $+ $gettok($sockname,3,46) -m 1 300 msn.chklst.join $gettok($gettok($1,1,33),1,58) $gettok($sockname,3,46)
     set -u2 %joinflood. [ $+ [ $msn.get($sockname,fullroom) ] ] $calc( %joinflood. [ $+ [ $msn.get($sockname,fullroom) ] ] + 1 )
     if (%joinflood. [ $+ [ $msn.get($sockname,fullroom) ] ] > 5) {
       .sockwrite -n $sockname kick $right($gettok(%read,4,32),-1) $gettok($gettok($1,1,33),1,58) : Mass.Join
       if (!$timer(flood $+ $right($gettok(%read,4,32),-1))) { .timerflood $+ $right($gettok(%read,4,32),-1) 1 30 resetmodes  $sockname | hadd -m flood $sockname $right($gettok(%read,4,32),-1) | sockwrite -n $sockname access $right($gettok(%read,4,32),-1) add deny *!*@*$* 2 :Flooders  $cr mode $right($gettok(%read,4,32),-1) +i-u }
     }

 

I have no idea what the problem is ... but maybe i was just adding the halt in the wrong place...

 

 

hope someone out there can help ;\

 

 

 

P.S. i use Vincula connection

Edited May 25, 2006 6:40 PM by fahad_aka_hitman

Ignorance Is Bliss

if ($nick isowner $chan) wudn't work here

 

it wud be:

if ($gettok($gettok($1,1,33),1,58) isowner $right($gettok(%read,4,32),-1)

 

though i dont know if such a syntax wud work in a sockread or not. As far as i know, owners don't join the room as owners.. It's like:

* blah joined <channel>

* blah sets mode +q blah

 

Not sure though, haven't tested anything, try the code 'neways

on me:*:join:#:hop #

yah i guess i see what you mean ..

 

i tried that code but it didn't work ... :notworking:

 

guess i should just make sure the other guys don't join when there's a flood :lmaojump:

 

thnx anyway :D

Ignorance Is Bliss

  if ($sockname != msn.server.999) .timermsn.chk. $+ $gettok($sockname,3,46) -m 1 300 msn.chklst.join $gettok($gettok($1,1,33),1,58) $gettok($sockname,3,46)
 if (!$gettok($3,4,44)) || (:>* iswm $1) || (*O iswm $gettok($3,3,44)) {
   set -u2 %joinflood. [ $+ [ $gettok($sockname,3,46) ] ] $calc(%joinflood. [ $+ [ $gettok($sockname,3,46) ] ] + 1)
   if (%joinflood. [ $+ [ $gettok($sockname,3,46) ] ] > 5) {
     .sockwrite -n $sockname kick $right($4,-1) $right($gettok($1,1,33),-1) : Mass.Join
     if (!$timer(flood $+ $right($gettok(%read,4,32),-1))) {
       .timerflood $+ $right($gettok(%read,4,32),-1) 1 30 resetmodes $sockname
       hadd -m flood $sockname $right($gettok(%read,4,32),-1)
       sockwrite -n $sockname access $right($gettok(%read,4,32),-1) add deny *!*@*$* 2 :Flooders $cr mode $right($gettok(%read,4,32),-1) +i-u
     }
   }
 }

 

try that, it should do the job for you.

thanks alot TGK :fixed::lmaojump:

Ignorance Is Bliss