X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fpop3client%2Fserv_pop3client.c;fp=citadel%2Fmodules%2Fpop3client%2Fserv_pop3client.c;h=3d1c1dd8f45f384781df03fc184bd0a88ab2078d;hp=9784798cc6a58a4fcc4f8b24e199e3d58ced7ffa;hb=eee9a1429dd032114946aad9e70fd8d84afbe918;hpb=c064b240ff457c4bcdc119aaf7a6a09ff31952e2 diff --git a/citadel/modules/pop3client/serv_pop3client.c b/citadel/modules/pop3client/serv_pop3client.c index 9784798cc..3d1c1dd8f 100644 --- a/citadel/modules/pop3client/serv_pop3client.c +++ b/citadel/modules/pop3client/serv_pop3client.c @@ -1214,9 +1214,9 @@ void pop3_cleanup(void) -void LogDebugEnablePOP3Client(void) +void LogDebugEnablePOP3Client(const int n) { - POP3ClientDebugEnabled = 1; + POP3ClientDebugEnabled = n; } CTDL_MODULE_INIT(pop3client) @@ -1229,7 +1229,7 @@ CTDL_MODULE_INIT(pop3client) POP3FetchUrls = NewHash(1, NULL); CtdlRegisterSessionHook(pop3client_scan, EVT_TIMER); CtdlRegisterEVCleanupHook(pop3_cleanup); - CtdlRegisterDebugFlagHook(HKEY("pop3client"), LogDebugEnablePOP3Client); + CtdlRegisterDebugFlagHook(HKEY("pop3client"), LogDebugEnablePOP3Client, &POP3ClientDebugEnabled); } /* return our module id for the log */