MOO-cows Mailing List Archive


Re: Connection Redirection?

"M. Childs" <>

>	I'm interested in having a way to transfer what player-object a 
>connection is attached to.  This function would redirect where the 
>incoming text is handled, and call confunc on the new object.  Security 
>concerns aside, does anyone have suggestions on how to make this, so 
>player A can suddenly become player B, without logging out and back in?  
>>From fiddling in database I've come to believe this could only be done by 
>writing a new function to compile into the server?
>	Help and suggestions would be appreciated,

I've been interested in this too.

I tried a hack where you use read() and then receive_line()
to redirect the terminal input to the other player.

Unfortunately, if you are trying to swap two players, then the
read of one eats the receive_line() of the other!  And of course,
receive_line doesn't work if the target player is not logged in.

Hadn't thought of calling confunc, actually -- this was more of an
evil prank to pull on players... (consentually, I'd think.)

Now, if I had this #0:do_command that I am rather wondering where
to find documentation for... perhaps that would do it...


Tom Ritchford,

Verge's "Little Idiot" -- Music for the mentally peculiar.


Home | Subject Index | Thread Index