PM notifier - accept or decliner v1.1

By nyfi on Jun 09, 2007

Ok this is quite simple to make but i was making it for my own use and then thought i might as well put it on here,
i made it quite quick but it works for me fine, feel free to change or modify it in anyway you like.
Any suggestions on improving it would be cool as well.

Here is how to use it;
alt + r -> paste into remotes
New remotes page.
Make sure you paste it "as it is" - don't change the way its positioned around or it may not work because of the two "on open" lines.

When somebody PMs you it will tell you they have messaged you and ask you if you would like to accept it or decline it.
Type /accept "there name" to accept it and allow them to pm you while the PM window is open.

Type /decline "there nick" to decline any more PMs, if they then carry on PMing you it will tell them they are ignored and it will from then on completely ignore them and you wont even see them trying to pm you.
UPDATE: You can now delete a person from your no.pms or msg.declined var using /delete NICK <--- Thanks to Manpreet for the pointer on that.

Update 16/02/2013 Adjusted due to comments on "/dec" being used by mIRC. Thanks to Yawhatnever for pointing this out.

##
#PM block or accept script
#By n_y_f_i/k0nv1kt3d
#I have tested this but if any bugs/errors are found please leave a #comment here.
##
on ^*:OPEN:?: {
  if (%no.more.pm [ $+ [ $nick ] ] == no1) {
    halt
  }
}
on *:OPEN:?: {  
  if (%message.declined [ $+ [ $nick ] ] == no2) {
    msg $nick 14You have been asked 4NOT14 to PM me after having your PM declined, you are now on my ignore list. I will not recive any more PM's from you.
    close -m $nick
    set %no.more.pm [ $+ [ $nick ] ] no1
    halt
    else
  }
  msg $nick 14Please wait for your message to be 4accepted14 or 4declined14.
  echo -a 06/07!0611MESSAGE06/07!0604 $nick 14has messaged you saying:4 $1- $+ 14, Type /accept $nick or /decline $nick $+ .
  set %message.waiting $nick
}
alias accept {
  if (%message.waiting != $null) {
    msg %message.waiting 14Message has been 4accepted14.
    unset %message.waiting  
  }
}
alias decline {
  if (%message.waiting != $null) {
    msg %message.waiting 14Message has been4 declined.
    timermss 1 1 msg %message.waiting 14This means you either have not asked to pm me or you do not have permission to.
    timermsf 1 3 msg %message.waiting 14If you continue to PM me without permission you will automatically be put on my ignore list.
    set %message.declined [ $+ [ %message.waiting ] ] no2
    close -m %message.waiting    
    unset %message.waiting  
  }
}
alias delete {
  if ($1 == $null) {
    echo -a 14Please enter a name you delete from your ignore list if there.
    halt
    else
  }
  if (%no.more.pm [ $+ [ $1 ] ] == $null && %message.declined [ $+ [ $1 ] ] == $null) { HALT }
  else { 
    unset %no.more.pm [ $+ [ $1 ] ]
    unset %message.declined [ $+ [ $1 ] ]
    echo -a 14The nick "04 $+ $1 $+ 14" has been deleted from your ignore list.
  }
}

Comments

Sign in to comment.
Yawhatnever   -  Jun 09, 2012

The /dec command is already a built in function for mIRC. You should rename it, because it conflicts with any script that uses /dec to decrease a variable.

I realize this is 4-5 years old, but if anyone stumbles upon this snippet and happens to read the comments just be aware that /dec may need to be edited to /decline or something similar if you have issues.

In case you were wondering I just Googled to find the original script after I fixed an endless loop issue for a friend caused by the conflict I described above.

nyfi  -  Feb 15, 2013

Adjusted. Thank you for your feedback. Surprised people are still using this as I wrote this back when I was at school. Seems like such a long time ago now!

Sign in to comment

EL   -  Jun 24, 2008

ROFL puff puff pass -*

 Respond  
napa182   -  Jun 24, 2008

lol that all goes back to Dan smoking crack. =P

 Respond  
Eugenio   -  Jun 24, 2008

Haha, EL, is your artistic inspiration from taking a lot of drugs.. your comments often make no sense xD
ROFLCOPTER

 Respond  
EL   -  Jun 24, 2008

ROFL i know man i been hearin alot of that lately ;x no that bunk ass nonamescript sucks dude everyoen an their sister used it an it still epic pails hardcore moose sack on a hot day:P its a crap script of rthose who cant take a basic clean DL mIRC an code shíít themselves an be happy its theirs they rather use other ppl crap an biitch about its phailin is all..

 Respond  
Jonesy44   -  Jun 24, 2008

Haha, EL, is your artistic inspiration from taking a lot of drugs.. your comments often make no sense xD

 Respond  
EL   -  Jun 24, 2008

NNS sucks donkey ballz and all that use it suck the left overs ;x

 Respond  
Jonesy44   -  Jun 24, 2008

This would hardly interfere with any script system .. Your fault for using nns lmao.

You didn\'t need to re-install.

 Respond  
a careful warchild   -  Jun 24, 2008

DO NOT USE THIS SCRIPT, UNLESS YOU WANT TO RE-INSTALL YOUR MIRC, and you probably ripped it off of someone else.

 Respond  
a careful warchild   -  Jun 24, 2008

ermm yeah, this sucks? freezes nns how sad?

 Respond  
ZoMBie   -  Nov 16, 2007

Fantastic?? it complete freeze my mirc! now i have to backup all!!!

 Respond  
zainul   -  Oct 26, 2007

this is a gr8 script well done and if u have any more cool scripts send to sexysumaya@webmail.co.za thanks :)

 Respond  
Clouds   -  Oct 08, 2007

Nice script, but my only problem with this script is, you can view the persons PM, when a request is taking place.

Tip 1

When a request is taking place, don\'t let the user view the PM in a query until he/she has accepted the request.

 Respond  
nyfi   -  Jun 21, 2007

Ok i will work on a dialog when i get time, but at the moment i have far too much course work to catch up on at school so i don\'t get much time, but ye i will when i can, thanks.

 Respond  
Storm2108   -  Jun 17, 2007

why not make a like a menu for like ignore and unignore?

 Respond  
nyfi   -  Jun 15, 2007

fixed and thanks XD

 Respond  
Manpreet   -  Jun 12, 2007

You have made a spelling error: automatically not automaticly.

 Respond  
Manpreet   -  Jun 11, 2007

Yes, I\'ve just noticed that. I am using it on my network right now. It\'s working very well. I look foward to seeing you around here more :)

 Respond  
nyfi   -  Jun 11, 2007

Thanks and not without removing the variable, i will add a way to remove a person as soon as i get time.

 Respond  
Manpreet   -  Jun 11, 2007

This is a fantastic script. Is there any way of removing the nick once they are on the ignore list?

 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.