convert server_set_defaults into private member function
use forward declaration rather than void pointer for the server's ircnet. Why cast when an incomplete type will do the trick?.