[svn] no_oper_invis: decrement invisible count when clearing

invisible on a local client who has just opered up
oper_up() should really do this
This commit is contained in:
jilles 2007-02-24 10:35:58 -08:00
parent 1178125363
commit af6ca5f5e5
3 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,15 @@
jilles 2007/02/21 19:52:51 UTC (20070221-3213)
Log:
Put "End of Channel Quiet List" instead of
"End of Channel Ban List" for a +q list.
Due to client restrictions the numerics for
quiet lists must be the same as for ban lists.
Changes: Modified:
+4 -1 trunk/src/chmode.c (File Modified)
jilles 2007/02/20 00:34:28 UTC (20070220-3211) jilles 2007/02/20 00:34:28 UTC (20070220-3211)
Log: Log:
Port over ratbox 2.2 r23507, r23624, r23626 (jilles/anfl): Port over ratbox 2.2 r23507, r23624, r23626 (jilles/anfl):

View File

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

View File

@ -1 +1 @@
#define SERNO "20070220-3211" #define SERNO "20070221-3213"