mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Scripts & Popups
Ban enforcer with kick limit Simo Yesterday at 01:56 PM
Hey there,

i was trying out this ban enforcer and couldnt get it to halt when the amount of nicks the banmask matched exceeds 2

the : if (%kick) { kick $chan %kick «-Banned-» } still executes anuway to halt that as well when $numtok(%kick,44) > 2.


Code

ON *:ban:#test:{ 
  if ($nick(#,$me,~&@%)  || o isin $usermode ) { 
    var %ixz = 1 
    while ($ialchan($banmask,$chan,%ixz).nick != $null)  { 
      var %user =  $v1
      if (!$nick($chan, %user ,@&%+) && !$istok( $me , %user ,32)  && %user ison $chan) { var %kick = $addtok(%kick,%user,44) }
      if ($numtok(%kick,44) > 2) { break | mode $chan -b $banmask | unset %kick }
      if ($numtok(%kick,44) == 4) { kick $chan  %kick «-Banned-» | unset %kick }
      inc %ixz 
    }
    if (%kick) { kick $chan  %kick «-Banned-» }
  }
}



0 32 Read More
Bug Reports
Re: $urlget Khaled Yesterday at 08:23 AM
Thanks for your bug report. WinINet is reporting a decode error when "deflate" is specified in the Accept-Encoding header on this particular website. I have not been able to reproduce this on other sites, so it seems that the implementation of deflate on this website is different from WinINet's version, which is a bit odd. In any case, I have changed $urlget() so that in the case of a decode error, it will retry the connection without compression, which resolves the issue in this case. This change will be in the next version.
1 78 Read More