Events/myrole

The myrole event is called whenever someone uses the !myrole command and is playing.

Event callback

 * prevent_default has no effect for this event
 * : The event object
 * : The IRC connection
 * : Reference to the src.settings module
 * : Person using !myrole

Event data
Messages is initialized to an empty list, and is useful for adding informational messages. The event handler is executed before the player is informed of their role, so using this data item ensures that messages are sent in the proper order. The role item is what role the user is told they are.