Not sure if this was thought up, but just seems to work for my bot, thought I'd post it here.
Inside AutoInv.php the last few lines:
function buddy($name, $msg)
{
$sql1 = "SELECT name FROM guests WHERE name = '$name'";
$result1 = $this -> bot -> db -> select($sql1);
if (($this -> auto == 1) && ($msg == 1) && (!empty($result1)))
$this -> bot -> aoc -> privategroup_invite($name);
}
This will (if you have guests) auto invite them when they login or when the bot crashes/restarts.
Note: I've only had this crash once, but never was able to figure why. If you get any problems, please let me know. Also: !autoinv on (must be turned on)