Events/rename_player

From Werewolf Wiki
Jump to navigation Jump to search

The rename_player event is called whenever someone changes their nick while in channel. It is executed before any tracking variables are updated to the new nick.

Event callback

def on_rename_player(event: Event, cli: IRCClient, var: module, prefix: str, nick: str) -> None
  • prevent_default has no effect for this event
  • event: The event object
  • cli: The IRC connection
  • var: Reference to the src.settings module
  • prefix: Old nick
  • nick: New nick

Event data

None