westpanda commented on a Page, Custom Command Adding and Deleting Script  -  Dec 06, 2014

Anyone have a idea how to add flood Protection to this ?

I tried this code :

{
on $*:text:/^!(\S+)/:#:{
if ((%floodcom) || ($($+(%,floodcom.,$2),2))) { return }
set -u10 %floodcom On
set -u30 %floodcom. $+ $nick On
if ($readini(rcdradio_commands.ini,n,#,$regml(1))) msg # $v1
}

Paper0rPlastic  -  Dec 09, 2014
    if ($len(%t)) { 
      if ((%floodcom. [ $+ [ $chan ] ]) || ($($+(%,floodcom. [ $+ [ $chan ] ] $+ .,$nick),2))) { return }
      set -u10 %floodcom. [ $+ [ $chan ] ] On
      set -u30 %floodcom. [ $+ [ $chan ] ] $+ . $+ $nick On
      msg # %t
    }
  }
}
westpanda  -  Dec 12, 2014

Thank you <3

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.