comparison mcabber/src/jabglue.c @ 695:c299035ccb9f

Fix up jb_request(), when the resource is unknown
author Mikael Berthe <mikael@lilotux.net>
date Sat, 11 Feb 2006 15:32:41 +0100
parents e98abd3ce28c
children ee03b56b93ee
comparison
equal deleted inserted replaced
694:6d6fdaf846ed 695:c299035ccb9f
591 } 591 }
592 592
593 // The resource has not been specified 593 // The resource has not been specified
594 roster_elt = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_ROOM); 594 roster_elt = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_ROOM);
595 if (!roster_elt) { 595 if (!roster_elt) {
596 scr_LogPrint(LPRINT_NORMAL, "User <%s> isn't in the roster."); 596 scr_LogPrint(LPRINT_NORMAL, "No known resource for <%s>...", jid);
597 request_version(jid); // Let's send a request anyway...
597 return; 598 return;
598 } 599 }
599 600
600 // Send a request to each resource 601 // Send a request to each resource
601 resources = buddy_getresources(roster_elt->data); 602 resources = buddy_getresources(roster_elt->data);