_-Pm Protection-_

By FreddyKrueger on Aug 05, 2004

This code prevents unwanted ppl from PM'ing you only those on your PM list can PM you.

ad these to your nicklist popups:

PMList
.PMAdd:/pmlist add $$1
.PMDel:/pmlist del $$1

makes it easier without typing the command.

on *:TEXT:*:?:{
  if ($nick !isin %pmlist) { msg $nick Hi if you see this message you aint on my list now go away!! | closemsg $nick | echo -a PM Attempt from $nick on $server failed: nick is not on allow list. }
  else { halt }
}
on *:ACTION:*:?:{
  if ($nick !isin %pmlist) { msg $nick Hi if you see this message you aint on my list now go away!!  | closemsg $nick | echo -a PM Attempt from $nick on $server failed: nick is not on allow list. }
  else { halt }
}
alias pmlist {
  if ($1 == add) { set %pmlist $addtok(%pmlist,$2,32) | echo -a * Added $2 to pm list. | echo -a Current List: %pmlist }
  if ($1 == del) { set %pmlist $remtok(%pmlist,$2,32) | echo -a * Removed $2 from pm list. | echo -a Current List: %pmlist }
  if ($1 == list) { echo -a * Pm allow list: %pmlist }
}

Comments

Sign in to comment.
ZabuzaMomochi   -  Jan 02, 2007

why dont you just do
on *:OPEN:?: {
instead of doing text and actions.

 Respond  
RoninWarrior   -  Jan 02, 2007

paste into the remotes section and clcik save and exit .Make sure it is a new remotes file ok .If you have anyt rouble post back please.

 Respond  
cariad[ST]   -  Jan 02, 2007

where would i put this ? i\'m kinda a twit when it comes to irc scripts and where to put em, so need the extra help. i had a run in with an imposter on mIRC and need to stop unwanted pm\'s.......this guy pretends to be slaves/subs Master/Mistress or loved one and creates trouble by doing this to unsuspecting slaves/subs.

 Respond  
DarthReven   -  Nov 17, 2004

Novel...but..Hash tables are at our disposal try them some time

 Respond  
Zach   -  Aug 08, 2004

Umm.. What if I want to block CodeGuy and The user \'Code\' tries to PM me, \'Code\' will be blocked. Use Tokens

 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.