ID:1333196
 
(See the best response by Rushnut.)
//pagerList is exactly what it says. A list containing multiple BYOND keys for a specific purpose, to notify them of their status.

//T is the text to send out.
client.SendPage(T,pagerList,"summon")

or

for(var/mob/M in pagerList)
src.client.SendPage(T,M,"summon")


I tried sending the page to this key, Xirre, while signed in on it. I also tried sending it while I was on a different key I had from about 6 years ago(which isn't a BYOND member but has Xirre added). No page received.

Possible problems?: "[T]" instead of T?
SendPage doesn't recognize the /list properly?

Does anyone see a fault in the code?
Best response
SendPage is depreciated and no longer works (Go complain about it, I want it back too :( )
Aw man.. That sucks booty.. And look at what I've done!!!

mob/paging/verb
Add_Recipient()
set category = "Pager"
var/M
switch(alert("Select or Type key?","Permit","Select","Type"))
if("Select")
M=input("Who do you want to add to the server pager list?") as null|mob in world
if("Type")
M=input("Please type their exact BYOND key") as text
if(M)
pagerList+=M
src << "<b><small>Added [M] to the pager list.</small></b>"
else
src << "<b><small>Cancelled adding a recipient.</b></small>"

Remove_Recipient()
set category = "Pager"
redo
var/K = input("Who do you wish to remove from permitted?") as null|anything in pagerList
if(!K)
src << "<b><small>Cancelled the remove of a recipient.</small></b>"
return
if(K)
src << "<b><small>Removed [K] from the pager list.</b></small>"
pagerList-=K
goto redo

All_Recipients()
set category = "Pager"
var/count = 0
for(var/M in permitted)
pagerList+=M
count++
src << "<b><small>[count] recipient\s added.</small></b>"


Who_Recipients()
set category = "Pager"
var/recipients = "Recipients: "
var/count = 0
for(var/M in pagerList)
recipients=recipients + "[M], "
count++
src << "[copytext(recipients,1,length(recipients)-1)]"
src << "<b><small>[count] recipient\s.</small></b>"

Clear_Recipients()
set category = "Pager"
pagerList = new/list
src << "<b><small>Pager list cleared.</b></small>"

Send_Page(T as text)
set category = "Pager"
var/recipients
var/count = 0
for(var/mob/M in pagerList)
recipients=recipients + "[M],"
count++
if(T)
src << "Sending.."
client.SendPage("[T]","[recipients]","summon=1")
sleep(10)
src << "Paged [copytext(recipients,1,length(recipients))]: [T]"
src << "<b><small>[count] recipients.</b></small>"
return


That's a lot of work for 8:07 in the morning with no sleep! BUMMER! I will complain now. :(