Hi,

since I don't know my contacts by UID I added the Alias to the fake offline
message.

Would be nice, if you could include the patch.

thanks
Philipp

-- 
Douglas Adams:
"Worin besteht der Vorteil, mit Ihren Fans per E-Mail zu korespondieren?"       
                                                                     
"Es geht schneller, ist einfacher und man muss nicht so viel lecken."           
                                                                      

Index: src/icqd-srv.cpp
===================================================================
--- src/icqd-srv.cpp    (revision 4551)
+++ src/icqd-srv.cpp    (working copy)
@@ -2911,6 +2911,7 @@
     junk2 = packet.UnpackUnsignedShortBE();
     szId = packet.UnpackUserString();
 
+    ICQUser *u = gUserManager.FetchUser(szId, LICQ_PPID, LOCK_W);
     if (packet.readTLV())
     {
       if (packet.hasTLV(0x0003) && packet.getTLVLen(0x0003) == 4)
@@ -2921,13 +2922,11 @@
     // an AIM user
     if (bFake && isdigit(szId[0]))
     {
-      gLog.Error("%sIgnoring fake offline:%s\n", L_SRVxSTR, szId);
+      gLog.Error("%sIgnoring fake offline:%s (%s)\n", L_SRVxSTR, szId, 
u->GetAlias());
       delete [] szId;
       break;
     }
 
-
-    ICQUser *u = gUserManager.FetchUser(szId, LICQ_PPID, LOCK_W);
     if (u == NULL)
     {
       gLog.Warn(tr("%sUnknown user (%s) has gone offline.\n"), L_WARNxSTR, 
szId);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to