Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

shun code

Recommended Posts

  • Administrators

I wanted to make a code to shun for 3 days 

ON ^*:SNOTICE:*: {
  if ($1 !== [Spamfilter]) { return }
  var %host = $gettok($2,2,64)

  if (!%spm_ [ $+ [ %host ] ]) { inc %spm_ [ $+ [ %host ] ] 1 }

  if (%spm_ [ $+ [ %host ] ] == 3) {
    shun *@ $+ %host 3d AUTO-SHUN for 3 days.
    unset %spm_ [ $+ [ %host ] ]
    return
  }

  inc %spm_ [ $+ [ %host ] ] 1
}

ON ^*:SNOTICE:*: {
  if ($1 !== [Spamfilter]) { return }
  var %host = $gettok($2,2,64)

  if (!%spm_ [ $+ [ %host ] ]) { inc %spm_ [ $+ [ %host ] ] 1 }

  if (%spm_ [ $+ [ %host ] ] == 3) {
    shun *@ $+ %host 3d AUTO-SHUN for 3 days.
    unset %spm_ [ $+ [ %host ] ]
    return
  }

  inc %spm_ [ $+ [ %host ] ] 1
}

Link to comment
Share on other sites



×
×
  • Create New...