Some fixes and inspircd connection stub