ID:139834
 
Code:
#1
mob/verb/MessageOtherWorld(Msg as text)
var/host = "byond://localhost:"
if(world.port!=10000)
host += "10000"
else
host += "10001"
if(!world.Export("[host]?shout:[Msg]"))
world << "Failed"

world/New()
if(!OpenPort(10000))
if(!OpenPort(10001))
del src
..()

world/Topic(T)
if(findtext(T,"shout:") == 1)
world << copytext(T,7)


#2
mob/verb/MessageOtherWorld(Msg as text)
var/host = "byond://localhost:"
if(world.port!=10000)
host += "10000"
else
host += "10001"
if(world.Export("[host]?shout:[Msg]")
world << Msg
else
world << "Failed"

world/New()
if(!OpenPort(10000))
if(!OpenPort(10001))
del src
..()

world/Topic(T)
if(findtext(T,"shout:") == 1)
world << copytext(T,7)


Problem description:
#1 tells me it fails even if it succeeds
#2 works how its intended, but could i rely on the information 100%?