// Version 1.5.0.0 - Updated to use InspSocket, faster and neater.
+/** Handles RFC1413 ident connections to users
+ */
class RFC1413 : public InspSocket
{
protected:
ReadSettings();
}
- virtual void OnUserRegister(userrec* user)
+ virtual int OnUserRegister(userrec* user)
{
/*
* when the new user connects, before they authenticate with USER/NICK/PASS, we do
strlcpy(user->ident,newident,IDENTMAX);
delete ident;
}
+ return 0;
}
virtual bool OnCheckReady(userrec* user)
// a user which has now vanished! To prevent this, set ident::u
// to NULL and check it so that we dont write users who have gone away.
ident->u = NULL;
+ ServerInstance->SE->DelFd(ident);
+ delete ident;
}
}
}
if (user->GetExt("ident_data", ident))
{
ident->u = NULL;
+ ServerInstance->SE->DelFd(ident);
+ delete ident;
}
}
virtual Version GetVersion()
{
- return Version(1,5,0,0,VF_VENDOR,API_VERSION);
+ return Version(1,1,0,0,VF_VENDOR,API_VERSION);
}
};