Add oper notices on: (1) joining invisibly to a channel (2) engage or disengage mode +Q

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6918 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-05-08 21:30:08 +00:00
parent 3c362be4a2
commit bc34197205

View File

@ -105,6 +105,8 @@ class InvisibleMode : public ModeHandler
i->second->WriteServ("MODE %s +%s", f->first->name, n.c_str());
}
}
ServerInstance->WriteOpers("*** \2NOTICE\2: Oper %s has become %svisible (%sQ)", dest->GetFullHost(), adding ? "in" : "", adding ? "+" : "-");
}
return MODEACTION_ALLOW;
}
@ -181,6 +183,7 @@ class ModuleInvisible : public Module
silent = true;
/* Because we silenced the event, make sure it reaches the user whos joining (but only them of course) */
user->WriteFrom(user, "JOIN %s", channel->name);
ServerInstance->WriteOpers("*** \2NOTICE\2: Oper %s has joined %s invisibly (+Q)", user->GetFullHost(), channel->name);
}
}