Pm Blocker

By Cobra_Strike on Oct 20, 2006

Ok here is a pm blocker that I have had help with to make from a few people on here but I though it would be good to post this as I tryed searching for somthing like this but found pretty hard to come across...

basicly it gives you an option when you right click to either
Ignore pms from certain users or to decline/accept all pm's
if you are declining all pm's it will send the user trying to pm you a message saying you are not accepting pm's
also if you are ignoring certain users it will reset when you exit Irc..

To install press ctrl+r and past it into a new remote file..

Hope you like this
Enjoy XD

############################
#PM Blocker by Cobra_Strike#
############################
menu nicklist {
  Ignore P.M's
  .Ignore user(s)
  ..Ignore P.M's from $$1 :/ignore -p $$1
  ..Unignore P.M's from $$1 :/ignore -rp $$1
  ..Clear ignore list: /ignore -rp
  .Accept/decline all
  ..Accept all pm's: unset %nopms | echo $color(notice) -a $+(-,$me,-) Now accepting P.m's
  ..Decline all pm's: set %nopms 1 | echo $color(notice) -a $+(-,$me,-) Now declining P.M's
}
on ^*:OPEN:?:*:  { 
  if (%nopms) { 
    .msg $nick I am currently not Accepting pm's please try again later 
    halt 
  } 
}
on *:exit: unset %nopms
}

Comments

Sign in to comment.
Veritas   -  Sep 02, 2010

You should make the option to ignore/accept/decline PM's in query's also..

this:

menu nicklist {

could be:

menu nicklist,query {

 Respond  
bohus   -  Mar 22, 2009

Thanks!
If you like to you can also add lines as below between .msg $nick... and halt to see the PM and save it in a file

echo $color(notice) -a $+(-,$me,-) $logstamp PM from $nick $1-
write logs\MissedPM.txt $logstamp PM from $nick $1-
 Respond  
SpotRedDog   -  May 30, 2007

The message isn\'t being sent for some reason that you\'ve ignored them so who knows maybe its me?

 Respond  
CodeProphet   -  Apr 02, 2007

.Accept/decline all

you forgot to add this alias with the code :=D

 Respond  
Cobra_Strike   -  Jan 09, 2007

Thanks SyntaxIRC Lol dont know why I didnt notice that before.

 Respond  
Lindrian   -  Dec 09, 2006

Working just fine! Thanks!

 Respond  
SyntaxIRC   -  Nov 08, 2006

Spelling mistake, might want to fix it:

Expecting - Accepting :/

 Respond  
Cobra_Strike   -  Oct 20, 2006

thanks acid i have edited it now it will only show in the nicklist XD

 Respond  
Acid-Religion   -  Oct 20, 2006

You might want to improve your menu aswell. When you you use menu * it will be displayed in all windows, while the $$1 will only be usable in nicklist or channel window.
You might want to make two seperate menus or change $$1 to an input..

 Respond  
SeminolePride   -  Oct 20, 2006

GROUP OFF

AL CODE INSIDE HERE

GROUP END

you can switch between on and off.. then you can use the /enable and /disable commands... As it is it would start out disabled and nothing in that group would work unless you enable the group first :) I use groups to enabled/disable certain features of my bot hope this helps you :)

 Respond  
Cobra_Strike   -  Oct 20, 2006

Thanks Seminolepride but What do you meen by group like I say I\'m pretty new so I will need a little explination if you dont mind =D

Much more like the sort of constructive comments I was thinking of
Glad you liked it.

 Respond  
SeminolePride   -  Oct 20, 2006

I like it.. eh instead of using the nopm var you should use a group that way you get a bit more performance outta the script :)

 Respond  
Cobra_Strike   -  Oct 20, 2006

Well I myself am new to scripting and I thought it was pretty good for me At the end of the day it does what it is intended for.

And it is simple yeah if you know how...
as I just stated I am new to all of this so I dont know how so its not very simple for me

Please more constructive comments unlike this one.

 Respond  
Cobra_Strike   -  Oct 20, 2006

I look forward to hearing what people have to say about this =P

 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.