Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; anti-notices.mrc
- ; This script is basic for channel addition to a specific event.
- ; in this case, we will ban users when they /notice chan <text>
- ; Because it's fucking annoying and completely useless. :)
- ;Aliases
- alias delchan { set %anti.chan.notice $remtok(%anti.chan.notice,$chan,1,44) }
- alias addchan { set %anti.chan.notice $addtok(%anti.chan.notice,$chan,44) }
- ;Event
- on *:NOTICE:*:%anti.chan.notice:{ if ($nick isreg $chan) { .msg x ban $chan $nick 300s Don't do that... } }
- ;Menus
- menu channel {
- ~nochanspam~
- .$iif($chan isin %anti.chan.notice,$style(1),) Anti /notice:{
- $iif($chan isin %anti.chan.notice,delchan,addchan)
- echo -a Notice Protection for $chan is now: $iif($chan isin %anti.chan.notice,Activated,Disabled)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement