Replace IP address with hostname
Handle setType

The server sends the setType event after logging in. This allows
us to set the correct irc mode for our own user.
Merge pull request #5 from Trellmor/for-cyzon/hostname

Replace IP address with hostname
Merge pull request #6 from Trellmor/for-cyzon/setType

Handle setType