#include "inspircd_config.h"
#include "inspircd.h"
#include "inspircd_io.h"
-#include "inspircd_util.h"
#include <unistd.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
}
if (Ptr->binarymodes & CM_INVITEONLY)
{
- MOD_RESULT = 0;
+ MOD_RESULT = 0;
+ irc::string xname(Ptr->name);
FOREACH_RESULT(OnCheckInvite(user, Ptr));
if (!MOD_RESULT)
{
log(DEBUG,"add_channel: channel is +i");
- if (user->IsInvited(Ptr->name))
+ if (user->IsInvited(xname))
{
/* user was invited to channel */
/* there may be an optional channel NOTICE here */
return NULL;
}
}
- user->RemoveInvite(Ptr->name);
+ user->RemoveInvite(xname);
}
if (Ptr->limit)
{