Events/chk win

The chk_win event is called every time win conditions are checked, and can be used to implement custom win conditions.

Event callback

 * prevent_default has no effect in this event
 * : The event object
 * : Reference to the src.settings module
 * : Number of players still alive
 * : Number of wolfchat roles still alive
 * : Number of wolf roles (excluding wolf cub) still alive

Event data
If the winner is None, this indicates that the game is not over yet. Otherwise, it should be a string naming a team such as "villagers", "wolves", "succubi", "monsters", a fool, or "" to indicate nobody won. Passing "" means nobody receives a win (not even additional_winners), if you wish it so that people can still get individual wins should they fulfill their own win cond (e.g. crazed shaman and the like), specify an invalid team such as "none" instead. If a fool won, the winner takes the form "@nick", where nick is the fool's nick (check if the first character of winner is a "@" if you wish to detect fool wins). The message is output to the channel if the game is actually over, it should be the particular game over message that explains who won. If additional_winners is defined (it is initialized to None), then it is a list of people who will received individual wins in addition to the normal winners.