std::string name = (**i).ModuleSourceFile;
int a = name.rfind('_');
int b = name.rfind('.');
- name = name.substr(a, b-a-1);
+ name = name.substr(a+1, b-a-1);
if (name == hook)
{
AddIOHook(*i);
bool TreeSocket::cull()
{
Utils->timeoutlist.erase(this);
+ if (myautoconnect)
+ Utils->Creator->ConnectServer(myautoconnect, false);
return this->BufferedSocket::cull();
}
{
case I_ERR_CONNECT:
ServerInstance->SNO->WriteToSnoMask('l', "Connection failed: Connection to \002%s\002 refused", myhost.c_str());
- Utils->Creator->ConnectServer(myautoconnect);
break;
case I_ERR_SOCKET:
ServerInstance->SNO->WriteToSnoMask('l', "Connection failed: Could not create socket (%s)", strerror(errno));