_-Pm Protection-_
Platform: mIRC
Published Aug 05, 2004
Updated Mar 08, 2005
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 }
}