-
I'm making a game where multiple people can log in. I'm ssh.User() as username ingame, and I want to prevent multiple people logging in with the same name. The program would have to deny the second login attempt. This is my code now, can I do it in that block with
...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
if you want the session to exit 0, probably the easiest way would be to create a that model would in turn defer on the other hand, if it's ok for the user to see an error exit code on their side, you can quit with |
Beta Was this translation helpful? Give feedback.
if you want the session to exit 0, probably the easiest way would be to create a
userAlreadyPlayingModel
and return a program that runs that instead.that model would in turn defer
tea.Quit
and/or print a message to the user while doing so.on the other hand, if it's ok for the user to see an error exit code on their side, you can quit with
wish.Fatal.*