fixed coding style brackets, added comment for onCharlistNotify and changed the way onPartyOption checks for packet type.