Refactored packet sending code.
Added direct access to the IRC session.
Changed handling of user masks.