[tpop3d-discuss]fix whoson enable/disable
Arkadiusz Miskiewicz
arekm at pld-linux.org
Wed, 28 Jan 2004 21:03:19 +0100
Hi,
Whoson is always enabled, whoson-enable flas is ignored. Here is fix:
diff -urN tpop3d-1.5.3.org/authswitch.c tpop3d-1.5.3/authswitch.c
=2D-- tpop3d-1.5.3.org/authswitch.c 2004-01-28 20:59:07.879436352 +01=
00
+++ tpop3d-1.5.3/authswitch.c 2004-01-28 20:59:38.938970374 +0100
@@ -330,7 +330,7 @@
#ifdef USE_WHOSON
char buf[128] =3D {0};
/* Notify whoson server the user has logged in correctly */
=2D if (wso_login(clienthost, A->user, buf, sizeof(buf)) =3D=3D -1)
+ if (whoson_enable && wso_login(clienthost, A->user, buf, sizeof(buf)) =
=3D=3D -1)
log_print(LOG_ERR, "authswitch_onlogin: wso_login: %s", buf);
#endif /* USE_WHOSON */
=2D-=20
Arkadiusz Mi=B6kiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux