* ---------------------------------------------------
*/
+#include "inspircd.h"
#include <stdarg.h>
#include "configreader.h"
-#include "inspircd.h"
#include "users.h"
#include "modules.h"
#include "wildcard.h"
{
return chanrec::ForceChan(Instance, Ptr, user, privs);
}
- else if (*user->oper)
+ else if (IS_OPER(user))
{
/* Oper allows extension up to the OperMaxchans value */
if (user->chans.size() < Instance->Config->OperMaxChans)
continue;
size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", this->GetPrefixChar(i->first), i->second.c_str());
+ /* OnUserList can change this - reset it back to normal */
i->second = i->first->nick;
curlen += ptrlen;