[svn] Make oper_up() take +i/-i during opering up into account

(e.g. no_oper_invis extension, +i in operator::umodes).
Remove the hack from no_oper_invis.
This commit is contained in:
jilles 2007-02-24 11:34:28 -08:00
parent af6ca5f5e5
commit 652b8478fb
4 changed files with 19 additions and 6 deletions

View file

@ -3,7 +3,7 @@
* hidden_oper privilege).
* -- jilles
*
* $Id: no_oper_invis.c 3215 2007-02-24 18:35:58Z jilles $
* $Id: no_oper_invis.c 3219 2007-02-24 19:34:28Z jilles $
*/
#include "stdinc.h"
@ -22,7 +22,7 @@ mapi_hfn_list_av1 noi_hfnlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(no_oper_invis, NULL, NULL, NULL, NULL, noi_hfnlist, "$Revision: 3215 $");
DECLARE_MODULE_AV1(no_oper_invis, NULL, NULL, NULL, NULL, noi_hfnlist, "$Revision: 3219 $");
static void
h_noi_umode_changed(hook_data_umode_changed *hdata)
@ -37,7 +37,5 @@ h_noi_umode_changed(hook_data_umode_changed *hdata)
* if they opered up while invisible -- jilles */
if (hdata->oldumodes & UMODE_OPER)
sendto_one_notice(source_p, ":*** Opers may not set themselves invisible");
else /* XXX oper_up() should really do this */
Count.invisi--;
}
}