[srvx-commits] CVS: services/src chanserv.c,1.332,1.333
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2003-01-24 22:53:40
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv30198/src
Modified Files:
chanserv.c
Log Message:
Do not log invocations of the note command when they contain
potentially privileged information or it may be revealed with the
events command. This fixes bug #655581 on SourceForge.
Index: chanserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/chanserv.c,v
retrieving revision 1.332
retrieving revision 1.333
diff -C2 -r1.332 -r1.333
*** chanserv.c 16 Jan 2003 23:19:07 -0000 1.332
--- chanserv.c 24 Jan 2003 22:53:37 -0000 1.333
***************
*** 4578,4581 ****
--- 4578,4589 ----
chanserv_add_channel_note(cData, ntype, user->handle_info->handle, note_text);
chanserv_notice(user, CSMSG_NOTE_SET, ntype->name, channel->name);
+
+ if(ntype->visible_type == NOTE_VIS_PRIVILEGED)
+ {
+ /* The note is viewable to staff only, so return 0
+ to keep the invocation from getting logged (or
+ regular users can see it in !events). */
+ return 0;
+ }
}
else
|