The server will now inform the socket_talk process of reboots.

This commit is contained in:
cib
2012-06-23 08:11:12 -07:00
parent c9619af156
commit 184c0775a6
+1 -10
View File
@@ -143,17 +143,8 @@
//Crispy fullban
/world/Reboot(var/reason)
spawn(0)
//world << sound(pick('newroundsexy.ogg','apcdestroyed.ogg','bangindonk.ogg')) // random end sounds!! - LastyBatsy No, no random end sounds. - Miniature
//if(prob(40))
// for(var/mob/M in world)
// if(M.client)
// M << sound('newroundsexy.ogg')
//else
// for(var/mob/M in world)
// if(M.client)
// M << sound('apcdestroyed.ogg')
send2irc(world.url,"Server Rebooting!")
socket_talk.send_raw("type=reboot")
for(var/client/C)
if (config.server) //if you set a server location in config.txt, it sends you there instead of trying to reconnect to the same world address. -- NeoFite
C << link("byond://[config.server]")