/**
  * When a player leaves a team, remove them from every conversation that
  * includes that team
  *
  * @param TeamAbandonEvent|TeamKickEvent $event The event
  */
 public function onTeamLeave(Event $event)
 {
     // We don't need to check which conversations include the player; a
     // player_conversations entry will have `distinct` set to 0 only if the
     // player belongs to a conversation because they are a member of this
     // team
     \Database::getInstance()->query("DELETE FROM `player_conversations`\n                WHERE player = ?\n                AND `distinct` = 0", "i", array($event->getPlayer()->getId()));
 }