Fix Dirty bugs in the Regex Parser and add InviteEvent