Erm, I made this script a while ago... >.< Just felt right to share it with all of you. :P It's simple, post it in your remotes and you will get a dialog upon someone PMing you and you get to choose to accept it or deny it.
I also have a question for anyone who can help. D: How would I make it ignore the person's PM till I accept and if I decline, make it ignore there PM for 2 minutes... Help would be very much appreciated.
dialog pm {
title "PM Request"
size -1 -1 216 221
option pixels
edit "", 1, 17 36 180 20
edit "", 2, 17 72 180 108, read multi vsbar
text "PM from:", 3, 17 19 45 15
text "Message:", 4, 17 56 50 15
button "Accept", 5, 38 184 59 20,
button "Decline", 6, 107 184 59 20, ok
box "", 7, 7 2 201 212
}
on *:OPEN:?:{
.dialog -mod pm pm pm
.did -a pm 2 $1-
.did -a pm 1 $nick
.msg $nick Your message has been sent to $me $+ . Please wait while I choose to decline or accept this message
.close -m $nick
}
on *:dialog:pm:sclick:5:{
.query $did(pm,1).text
.msg $did(pm,1).text Your PM request was accepted
.dialog -x pm
}
on *:dialog:pm:sclick:6:{
.msg $did(pm,1).text This PM was declined
.dialog -x pm pm
}