jingle-ft/filetransfer.c
changeset 159 1df5f5e3f1e7
parent 156 653fa009fea3
child 160 e149e868d501
equal deleted inserted replaced
158:a068e5714120 159:1df5f5e3f1e7
   445       scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Please, choose a valid JID in the roster");
   445       scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Please, choose a valid JID in the roster");
   446       return;
   446       return;
   447     }
   447     }
   448     ressource = jingle_find_compatible_res(CURRENT_JID, namespaces);
   448     ressource = jingle_find_compatible_res(CURRENT_JID, namespaces);
   449     if (ressource == NULL) {
   449     if (ressource == NULL) {
   450       scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Cannot send file,"
   450       scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Cannot send file, because this buddy"
   451                                    " because there is no ressource available");
   451                                    " has no compatible ressource available");
   452       return;
   452       return;
   453     }
   453     }
   454 
   454 
   455     recipientjid = g_strdup_printf("%s/%s", CURRENT_JID, ressource);
   455     recipientjid = g_strdup_printf("%s/%s", CURRENT_JID, ressource);
   456 
   456 
   474   else if (!g_strcmp0(args[0], "info"))
   474   else if (!g_strcmp0(args[0], "info"))
   475     _jft_info(args);
   475     _jft_info(args);
   476   else if (!g_strcmp0(args[0], "flush"))
   476   else if (!g_strcmp0(args[0], "flush"))
   477     _jft_flush(args);
   477     _jft_flush(args);
   478   else
   478   else
   479     scr_LogPrint(LPRINT_LOGNORM, "/jft: %s is not a correct option.", args[1]);
   479     scr_LogPrint(LPRINT_LOGNORM, "/jft: %s is not a correct option.", args[0]);
   480 
   480 
   481   free_arg_lst(args);
   481   free_arg_lst(args);
   482 }
   482 }
   483 
   483 
   484 static void _free(JingleFT *jft)
   484 static void _free(JingleFT *jft)