OnRehash(NULL, "");
- Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnNamesListItem, I_OnRehash };
- Me->Modules->Attach(eventlist, this, 6);
+ Implementation eventlist[] = { I_OnUserJoin, I_OnUserPart, I_OnUserKick, I_OnUserQuit, I_OnNamesListItem, I_OnRehash, I_OnHostCycle };
+ Me->Modules->Attach(eventlist, this, 7);
}
return;
/* If user is oper and operoverride is on, don't touch the list */
- if (OperOverride && IS_OPER(user))
+ if (OperOverride && user->HasPrivPermission("channels/auspex"))
return;
if (ShowOps && (issuer != user) && (channel->GetStatus(user) < STATUS_OP))
}
}
+ bool OnHostCycle(User* user)
+ {
+ for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++)
+ if (f->first->IsModeSet('u'))
+ return true;
+
+ return false;
+ }
+
void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message)
{
Command* parthandler = ServerInstance->Parser->GetHandler("PART");