Yes, anything is possible. Upon a join bind either create an array or write in a file it's nick and uhost or whatever you want and upon the !lasthost command get the result from the array or read from the file. This subjects have been discussed before and there is no point on mentioning them again and again.. don't you agree on that?
Once the game is over, the king and the pawn go back in the same box.