daily pastebin goal
34%
SHARE
TWEET

anti-notices.mrc

Seb Dec 16th, 2016 (edited) 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; anti-notices.mrc
  2. ; This script is basic for channel addition to a specific event.
  3. ; in this case, we will ban users when they /notice chan <text>
  4. ; Because it's fucking annoying and completely useless. :)
  5.  
  6. ;Aliases
  7. alias delchan { set %anti.chan.notice $remtok(%anti.chan.notice,$chan,1,44) }
  8. alias addchan { set %anti.chan.notice $addtok(%anti.chan.notice,$chan,44) }
  9.  
  10. ;Event
  11. on *:NOTICE:*:%anti.chan.notice:{ if ($nick isreg $chan) { .msg x ban $chan $nick 300s Don't do that... } }
  12.  
  13. ;Menus
  14. menu channel {
  15.   ~nochanspam~
  16.   .$iif($chan isin %anti.chan.notice,$style(1),) Anti /notice:{
  17.     $iif($chan isin %anti.chan.notice,delchan,addchan)
  18.     echo -a Notice Protection for $chan is now: $iif($chan isin %anti.chan.notice,Activated,Disabled)
  19.   }
  20. }
RAW Paste Data
Top