Changeset 93052e1
- Timestamp:
- 2007-12-16T02:55:56Z (17 years ago)
- Branches:
- master
- Children:
- 885efac6
- Parents:
- 67454bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skype.c
r67454bd r93052e1 285 285 else if(!strncmp(ptr, "FULLNAME ", 9)) 286 286 sd->info_fullname = g_strdup_printf("%s", ptr + 9); 287 else if(!strncmp(ptr, "PHONE_HOME ", 11)) 288 sd->info_phonehome = g_strdup_printf("%s", ptr + 11); 289 else if(!strncmp(ptr, "PHONE_OFFICE ", 13)) 290 sd->info_phoneoffice = g_strdup_printf("%s", ptr + 13); 291 else if(!strncmp(ptr, "PHONE_MOBILE ", 13)) 292 sd->info_phonemobile = g_strdup_printf("%s", ptr + 13); 293 else if(!strncmp(ptr, "NROF_AUTHED_BUDDIES ", 20)) 294 sd->info_nrbuddies = g_strdup_printf("%s", ptr + 20); 295 else if(!strncmp(ptr, "TIMEZONE ", 9)) 296 sd->info_tz = g_strdup_printf("%s", ptr + 9); 297 else if(!strncmp(ptr, "LASTONLINETIMESTAMP ", 20)) 298 sd->info_seen = g_strdup_printf("%s", ptr + 20); 299 else if(!strncmp(ptr, "BIRTHDAY ", 9)) 300 sd->info_birthday = g_strdup_printf("%s", ptr + 9); 301 else if(!strncmp(ptr, "SEX ", 4)) 302 sd->info_sex = g_strdup_printf("%s", ptr + 4); 303 else if(!strncmp(ptr, "LANGUAGE ", 9)) 304 sd->info_language = g_strdup_printf("%s", ptr + 9); 305 else if(!strncmp(ptr, "COUNTRY ", 8)) 306 sd->info_country = g_strdup_printf("%s", ptr + 8); 307 else if(!strncmp(ptr, "PROVINCE ", 9)) 308 sd->info_province = g_strdup_printf("%s", ptr + 9); 309 else if(!strncmp(ptr, "CITY ", 5)) 310 sd->info_city = g_strdup_printf("%s", ptr + 5); 311 else if(!strncmp(ptr, "HOMEPAGE ", 9)) 312 sd->info_homepage = g_strdup_printf("%s", ptr + 9); 287 313 else if(!strncmp(ptr, "ABOUT ", 6)) 288 314 { 289 315 sd->info_about = g_strdup_printf("%s", ptr + 6); 290 316 291 GString *st = g_string_new(" User Info\n");317 GString *st = g_string_new("Contact Information\n"); 292 318 g_string_append_printf(st, "Skype Name: %s\n", user); 293 319 if(sd->info_fullname) 294 320 { 295 g_string_append_printf(st, "Full Name: %s\n", sd->info_fullname); 321 if(strlen(sd->info_fullname)) 322 g_string_append_printf(st, "Full Name: %s\n", sd->info_fullname); 296 323 g_free(sd->info_fullname); 324 } 325 if(sd->info_phonehome) 326 { 327 if(strlen(sd->info_phonehome)) 328 g_string_append_printf(st, "Home Phone: %s\n", sd->info_phonehome); 329 g_free(sd->info_phonehome); 330 } 331 if(sd->info_phoneoffice) 332 { 333 if(strlen(sd->info_phoneoffice)) 334 g_string_append_printf(st, "Office Phone: %s\n", sd->info_phoneoffice); 335 g_free(sd->info_phoneoffice); 336 } 337 if(sd->info_phonemobile) 338 { 339 if(strlen(sd->info_phonemobile)) 340 g_string_append_printf(st, "Mobile Phone: %s\n", sd->info_phonemobile); 341 g_free(sd->info_phonemobile); 342 } 343 g_string_append_printf(st, "Personal Information\n"); 344 if(sd->info_nrbuddies) 345 { 346 if(strlen(sd->info_nrbuddies)) 347 g_string_append_printf(st, "Contacts: %s\n", sd->info_nrbuddies); 348 g_free(sd->info_nrbuddies); 349 } 350 if(sd->info_tz) 351 { 352 if(strlen(sd->info_tz)) 353 g_string_append_printf(st, "Local Time: %s\n", sd->info_tz); 354 g_free(sd->info_tz); 355 } 356 if(sd->info_seen) 357 { 358 if(strlen(sd->info_seen)) 359 g_string_append_printf(st, "Last Seen: %s\n", sd->info_seen); 360 g_free(sd->info_seen); 361 } 362 if(sd->info_birthday) 363 { 364 if(strlen(sd->info_birthday)) 365 g_string_append_printf(st, "Birthday: %s\n", sd->info_birthday); 366 g_free(sd->info_birthday); 367 } 368 if(sd->info_sex) 369 { 370 if(strlen(sd->info_sex)) 371 g_string_append_printf(st, "Gender: %s\n", sd->info_sex); 372 g_free(sd->info_sex); 373 } 374 if(sd->info_language) 375 { 376 if(strlen(sd->info_language)) 377 g_string_append_printf(st, "Language: %s\n", sd->info_language); 378 g_free(sd->info_language); 379 } 380 if(sd->info_country) 381 { 382 if(strlen(sd->info_country)) 383 g_string_append_printf(st, "Country: %s\n", sd->info_country); 384 g_free(sd->info_country); 385 } 386 if(sd->info_province) 387 { 388 if(strlen(sd->info_province)) 389 g_string_append_printf(st, "Region: %s\n", sd->info_province); 390 g_free(sd->info_province); 391 } 392 if(sd->info_city) 393 { 394 if(strlen(sd->info_city)) 395 g_string_append_printf(st, "City: %s\n", sd->info_city); 396 g_free(sd->info_city); 397 } 398 if(sd->info_homepage) 399 { 400 if(strlen(sd->info_homepage)) 401 g_string_append_printf(st, "Homepage: %s\n", sd->info_homepage); 402 g_free(sd->info_homepage); 403 } 404 if(sd->info_about) 405 { 406 if(strlen(sd->info_about)) 407 g_string_append_printf(st, "%s\n", sd->info_about); 408 g_free(sd->info_about); 297 409 } 298 410 imcb_log(ic, "%s", st->str);
Note: See TracChangeset
for help on using the changeset viewer.