comparison mcabber/src/jab_iq.c @ 782:19121d9f4aa2

Nicer message when receiving IQ result packet (Thanks to pmw for the suggestion)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 01 Apr 2006 15:57:14 +0200
parents df60fe695dc0
children 109dcf5fc111
comparison
equal deleted inserted replaced
781:d3af6877a7df 782:19121d9f4aa2
247 scr_LogPrint(LPRINT_LOGNORM, "Invalid IQ:version result (no sender name)."); 247 scr_LogPrint(LPRINT_LOGNORM, "Invalid IQ:version result (no sender name).");
248 return; 248 return;
249 } 249 }
250 bjid = p; 250 bjid = p;
251 251
252 buf = g_strdup_printf("IQ:version result from <%s>", bjid); 252 buf = g_strdup_printf("Received IQ:version result from <%s>", bjid);
253 scr_LogPrint(LPRINT_LOGNORM, "%s", buf); 253 scr_LogPrint(LPRINT_LOGNORM, "%s", buf);
254 254
255 // bjid should now really be the "bare JID", let's strip the resource 255 // bjid should now really be the "bare JID", let's strip the resource
256 p = strchr(bjid, '/'); 256 p = strchr(bjid, '/');
257 if (p) *p = '\0'; 257 if (p) *p = '\0';
323 scr_LogPrint(LPRINT_LOGNORM, "Invalid IQ:time result (no sender name)."); 323 scr_LogPrint(LPRINT_LOGNORM, "Invalid IQ:time result (no sender name).");
324 return; 324 return;
325 } 325 }
326 bjid = p; 326 bjid = p;
327 327
328 buf = g_strdup_printf("IQ:time result from <%s>", bjid); 328 buf = g_strdup_printf("Received IQ:time result from <%s>", bjid);
329 scr_LogPrint(LPRINT_LOGNORM, "%s", buf); 329 scr_LogPrint(LPRINT_LOGNORM, "%s", buf);
330 330
331 // bjid should now really be the "bare JID", let's strip the resource 331 // bjid should now really be the "bare JID", let's strip the resource
332 p = strchr(bjid, '/'); 332 p = strchr(bjid, '/');
333 if (p) *p = '\0'; 333 if (p) *p = '\0';