emote.txt 412 Bytes
def emote(id, params, players, mud):
    # go through every player in the game
    for pid, pl in players.items():
        # if they're in the same room as the player
        if players[pid]["room"] == players[id]["room"]:
            # send them a message telling them what the player said
            mud.send_message(pid, "{} {}".format(players[id]["name"], params))

emote(id, params, players, mud)
del emote