Very Simple Query Blocker

By Bouncer on Apr 08, 2007

I made this originally for myself because I wanted a VERY simple way of blocking pm's when I didn't want to get any. Thanks to Daveoh for reminding me to add the ^ to my on event.

Edit: I added an allow list to it. Tell me what you think.

Edit: I added an on exit event to set your dnd off when you shut down mIRC.

DND System
.Turn On/Off
..On:set %dnd on | amsg [ DND is ON ][ I am not accepting P2P's ]
..Off:set %dnd off | amsg [ DND is OFF ][ I am now accepting P2P's ]
.DND Allow List
..Add User:auser dndallow $$1
..Del User:ruser dndallow $$1

-
Add the above section to your POPUPS (Alt+P)
-
on ^*:OPEN:?:*: {
  if ($ulevel == dndallow) { return }
  elseif (%dnd == on) {
    .msg $nick 14,1[ 3,1DND 0,1is 3,1ON 14,1][0,1 I am not accepting 3,1P2P's 14,1]
    halt
  }
}
on *:EXIT: {
  if (%dnd == on) {
    set %dnd off
  }
}
-
Add the above section to your REMOTES (Alt+R)

Comments

Sign in to comment.
Chevy   -  Apr 12, 2007

Mayne i hate dat thing ROFL i tried and tried and tried to figure that out i also used the return after the opening which is
on ^:OPEN:?:: {
if ($ulevel == dndallow) { return }
elseif (%dnd == on) {

It still did not work so i took it out and just kept the {
but i see that it works for you some how lol but i guess its good.

 Respond  
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.