// Not rehashable...because I cba to reduce all the sizes of existing buffers.
inbufsize = ServerInstance->Config->NetBufferSize;
// Not rehashable...because I cba to reduce all the sizes of existing buffers.
inbufsize = ServerInstance->Config->NetBufferSize;
if(user->GetExt("ssl", dummy) && isin(user->GetPort(), listenports))
{
// User is using SSL, they're a local user, and they're using one of *our* SSL ports.
// Potentially there could be multiple SSL modules loaded at once on different ports.
if(user->GetExt("ssl", dummy) && isin(user->GetPort(), listenports))
{
// User is using SSL, they're a local user, and they're using one of *our* SSL ports.
// Potentially there could be multiple SSL modules loaded at once on different ports.
virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult)
{
virtual int OnRawSocketRead(int fd, char* buffer, unsigned int count, int &readresult)
{
- virtual void OnSyncUserMetaData(userrec* user, Module* proto, void* opaque, const std::string &extname, bool displayable)
+ virtual void OnSyncUserMetaData(User* user, Module* proto, void* opaque, const std::string &extname, bool displayable)
// check if its our metadata key, and its associated with a user
if ((target_type == TYPE_USER) && (extname == "ssl"))
{
// check if its our metadata key, and its associated with a user
if ((target_type == TYPE_USER) && (extname == "ssl"))
{
// if they dont already have an ssl flag, accept the remote server's
if (!dest->GetExt(extname, dummy))
{
// if they dont already have an ssl flag, accept the remote server's
if (!dest->GetExt(extname, dummy))
{
{
// This occurs AFTER OnUserConnect so we can be sure the
// protocol module has propagated the NICK message.
{
// This occurs AFTER OnUserConnect so we can be sure the
// protocol module has propagated the NICK message.