This custom code hook is part of the Chargen plugin.
With custom code, you can create triggers that run when a character is approved. You could use this to assign a role or add someone to a channel based on a group value (e.g. faction or department).
aresmush/plugins/chargen/custom_approval.rb and make the
custom_approval method do whatever you want to do when someone is approved.
Here’s an example of how to assign a role based on the character’s faction (assuming you’ve already created the roles using
role/create ahead of time).
def self.custom_approval(char) faction = char.group("Faction") role = Role.find_one_by_name(faction) if (role) char.roles.add role end end