[srvx-commits] CVS: services/src mod-snoop.c,1.3,1.4
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2002-10-07 20:09:21
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv11084/src
Modified Files:
mod-snoop.c
Log Message:
add handler for client auths
Index: mod-snoop.c
===================================================================
RCS file: /cvsroot/srvx/services/src/mod-snoop.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** mod-snoop.c 7 Oct 2002 19:29:45 -0000 1.3
--- mod-snoop.c 7 Oct 2002 20:09:15 -0000 1.4
***************
*** 33,38 ****
#include "conf.h"
- #include "hash.h"
#include "helpfile.h"
static struct {
--- 33,38 ----
#include "conf.h"
#include "helpfile.h"
+ #include "nickserv.h"
static struct {
***************
*** 91,94 ****
--- 91,103 ----
static void
+ snoop_auth(struct userNode *user, struct handle_info *old_handle) {
+ (void)old_handle;
+ if (!snoop_cfg.enabled) return;
+ if (user->handle_info) {
+ SNOOP("AUTH %s as %s", user->nick, user->handle_info->handle);
+ }
+ }
+
+ static void
snoop_conf_read(void) {
dict_t node;
***************
*** 122,125 ****
--- 131,135 ----
reg_new_user_func(snoop_new_user);
reg_del_user_func(snoop_del_user);
+ reg_auth_func(snoop_auth);
/* Not implemented since hooks don't exist or lack data desired:
* chanmode (issuing user not listed)
|