on *:open:?:*:{
if (%tppm = on) {
set %tppm.nick $nick
set %tppm.message $1-
msg $nick 14,1[[4,114,1]]4,1 Hello0,1 $nick 0,1This is Jack from0,1 #Zypher4,1Networks
msg $nick 0,1If you are contacting me about 0,1Zypher9,1Networks0,1, please leave me a message and I will get back to you.
msg $nick 0,1If you need immediate assistance, go to #Zypher4,1Networks0 and ask an op.
msg $nick 0,1Thank you and Support #Zypher4,1Networks
/dialog -m tppm tppm
}
}
dialog tppm {
title "Incoming Pm"
size 150 150 150 100
option dbu
text "", 1, 5 5 140 10
box "Message:", 2, 5 15 140 60
edit "", 3, 10 25 130 45, multi read
button "Accept", 4, 5 80 25 15,
button "Denied", 5, 35 80 25 15,
button "Cancel", 6, 120 80 25 15, cancel
}
on *:dialog:tppm:sclick:4:{
msg %tppm.nick 4,1Your Conversation Has Been 0,1Accepted.
dialog -c tppm tppm
}
on *:dialog:tppm:sclick:5:{
close -m %tppm.nick | msg %tppm.nick 4,1 Your Conversation Has Been 0,1Denied.
dialog -c tppm tppm
}
on *:dialog:tppm:init:0:{
did -ra tppm 1 Incoming pm from: %tppm.nick
did -ra tppm 3 %tppm.message
}
on *:dialog:tppm:close:0:{
unset %tppm.message
unset %tppm.nick
/dialog -c tppm tppm
}
menu menubar,channel,status {
Query Manager:
.Turn On:set %tppm on
.Turn Off:set %tppm off