throw ModuleException("Could not add new modes!");
ServerInstance->Modules->UseInterface("HashRequest");
- Extensible::Register(&cu.ext);
+ ServerInstance->Extensions.Register(&cu.ext);
Implementation eventlist[] = { I_OnRehash, I_OnCheckBan, I_OnUserConnect };
ServerInstance->Modules->Attach(eventlist, this, 3);
}
else
{
- const char* ip4 = (const char*)&ip.in4.sin_addr;
+ const unsigned char* ip4 = (const unsigned char*)&ip.in4.sin_addr;
snprintf(rv, 50, ".%d.%d.IP", ip4[1], ip4[0]);
}
return rv;
}
case MODE_OPAQUE:
default:
- chost = SegmentIP(dest->client_sa);
+ chost = prefix + SegmentIP(dest->client_sa);
}
cu.ext.set(dest,chost);
}