[srvx-commits] CVS: services/src mod-snoop.c,1.9,1.10
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2003-01-07 04:24:29
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26851/src
Modified Files:
mod-snoop.c
Log Message:
do not show AUTH messages during burst
do not show QUIT messages when we are exiting
Index: mod-snoop.c
===================================================================
RCS file: /cvsroot/srvx/services/src/mod-snoop.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** mod-snoop.c 3 Jan 2003 23:57:31 -0000 1.9
--- mod-snoop.c 7 Jan 2003 04:24:25 -0000 1.10
***************
*** 111,114 ****
--- 111,115 ----
(void)old_handle;
if (!snoop_cfg.enabled) return;
+ if (user->uplink->burst && !snoop_cfg.show_bursts) return;
if (user->handle_info) {
UPDATE_TIMESTAMP();
***************
*** 140,145 ****
--- 141,152 ----
}
+ void
+ snoop_cleanup(void) {
+ unreg_del_user_func(snoop_del_user);
+ }
+
int
snoop_init(void) {
+ reg_exit_func(snoop_cleanup);
conf_register_reload(snoop_conf_read);
reg_nick_change_func(snoop_nick_change);
|