Hi!

I think this is the best fix for the "licq -d" problem, which I 
introduced with my "startup crash fix" patch (sorry about that).

This makes sure that CLogServer::Log() logs the message only if both the 
log type and service type match (the service type will always match if 
it is called with the default S_ALL).

regards

Bryce.


--- src-orig/log.cpp    Sun Feb 24 13:54:45 2002
+++ src/log.cpp Sun Feb 24 13:55:30 2002
@@ -410,7 +410,7 @@
   vector<CLogService *>::iterator iter;
   for (iter = m_vxLogServices.begin(); iter != m_vxLogServices.end(); 
iter++)
   {
-    if ((*iter)->LogType(_nLogType) || (*iter)->ServiceType() & 
_nServiceTypes)
+    if ((*iter)->LogType(_nLogType) && (*iter)->ServiceType() & 
_nServiceTypes)
         (*iter)->LogMessage(szTime, szMsgMax, _nLogType);
   } 
   pthread_mutex_unlock(&mutex);




_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to