Top

PM Blocker


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  6.3
Scores Submitted  4
Date Added  Dec 10, 2007
Last Updated  Dec 10, 2007
Tags  blocker  p2p  pm 
  Bookmark and Share

Introduction

This is just a simple pm blocker.
*To Open type /dialog -m pmblocker pmblocker
or right click on any mirc window and click on "Pm Blocker"

Grab the Code

Comments

  (6)  RSS
mountaindew
Comments: 1,640
 
mIRC Snippet:  PM Blocker
Posted on Dec 10, 2007 7:02 pm
i found a lot of things wrong with this script :/

*if u try to open the dialog with the menu when its open, it gives an error (solve with $iif and dialog +v/+m)
*if you arent connected or arent on a channel, it gives an /amsg error
*if you pm urself, it goes nuts until you turn it off (when you pm urself that u dont accept pms, it just keeps going on and on with the on open)
*the pms blocked () duznt update unless u refresh the dialog

suggestion: i would disable the on/off button when you click it so that you know whether its on/off

but other than that, i guess it serves its main purpose under the correct circumstances
SLS10
Comments: 35
 
mIRC Snippet:  PM Blocker
Posted on Dec 10, 2007 9:27 pm
One issue, Mountaindew. If someone isn't connected, do they expect to get a PM? Also, why would anyone PM themselves?

Little nitpicky thing I am. Sorreh.
Rebellious
Comments: 64
 
mIRC Snippet:  PM Blocker
Posted on Dec 10, 2007 9:50 pm
Yes, but the script can be enabled and disabled while disconnected. If you enable it or disable it while disconnected, the script will amsg. Thus giving an error.
mountaindew
Comments: 1,640
 
mIRC Snippet:  PM Blocker
Posted on Dec 11, 2007 1:53 pm
so maybe u shuold do like
Code:

menu channel {
  $iif(!$server,$style(2)) PM Blocker: $iif($server,dialog $iif($dialog(pmblocker),-v,-m) pmblocker pmblocker)
}
mountaindew
Comments: 1,640
 
mIRC Snippet:  PM Blocker
Posted on Dec 11, 2007 1:55 pm
menu * rather
Eugenio
Comments: 1,082
 
mIRC Snippet:  PM Blocker
Posted on Apr 25, 2008 1:31 pm
1/10 -_-'

Please Register or Login to start posting comments.
Bottom