mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 20:49:02 -04:00
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:
parent
3c362be4a2
commit
bc34197205
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user