Fixed a race issue with auto commands

Fixed an issue in which auto commands would be executed prior to the
user host mask being retrieved, resulting in runtime errors if channels
are joined upon connection.