src/protocols/msn/notification.c

changeset 9900
fc219ee81de6
parent 9897
28ae043d7cda
child 9927
7ae7d2accb3e
equal deleted inserted replaced
9899:30cc3ce7aeb7 9900:fc219ee81de6
353 353
354 list = params[0]; 354 list = params[0];
355 passport = params[1]; 355 passport = params[1];
356 356
357 if (!strcmp(list, "FL")) 357 if (!strcmp(list, "FL"))
358 msg = g_strdup("Unable to add user on MSN"); 358 msg = g_strdup_printf("Unable to add user on %s (%s)",
359 gaim_account_get_username(account),
360 gaim_account_get_protocol_name(account));
359 else if (!strcmp(list, "BL")) 361 else if (!strcmp(list, "BL"))
360 msg = g_strdup("Unable to block user on MSN"); 362 msg = g_strdup_printf("Unable to block user on %s (%s)",
363 gaim_account_get_username(account),
364 gaim_account_get_protocol_name(account));
361 else if (!strcmp(list, "AL")) 365 else if (!strcmp(list, "AL"))
362 msg = g_strdup("Unable to permit user on MSN"); 366 msg = g_strdup_printf("Unable to permit user on %s (%s)",
367 gaim_account_get_username(account),
368 gaim_account_get_protocol_name(account));
363 369
364 if (!strcmp(list, "FL")) 370 if (!strcmp(list, "FL"))
365 { 371 {
366 if (error == 208) 372 if (error == 210)
367 { 373 {
368 reason = g_strdup_printf("%s is not a valid passport account.\n\n" 374 reason = g_strdup_printf("%s could not be added because "
369 "This user will be automatically removed " 375 "your buddy list is full.", passport);
370 "from your %s account's buddy list, "
371 "this won't appear again.",
372 passport,
373 gaim_account_get_username(account));
374 }
375 else if (error == 210)
376 {
377 reason = g_strdup_printf("%s's buddy list is full.\n\n"
378 "%s could not be added.",
379 gaim_account_get_username(account),
380 passport);
381 } 376 }
382 } 377 }
383 378
384 if (reason == NULL) 379 if (reason == NULL)
385 { 380 {

mercurial