+ if (gi == NULL)
+ throw ModuleException("Unable to initialize geoip, are you missing GeoIP.dat?");
+
+ ServerInstance->Modules->AddService(ext);
+ Implementation eventlist[] = { I_OnSetConnectClass, I_OnStats };
+ ServerInstance->Modules->Attach(eventlist, this, 2);
+
+ for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); ++i)
+ {
+ LocalUser* user = *i;
+ if ((user->registered == REG_ALL) && (!ext.get(user)))
+ {
+ SetExt(user);
+ }
+ }