Automatically detect ZNC connections.

Also fixes bug resulting in isServer never being set on a sender.