comparison src/protocols/oscar/oscar.c @ 7385:79d74929693c

[gaim-migrate @ 7980] I guess this'll fix http://sourceforge.net/tracker/?func=detail&aid=831580&group_id=235&atid=100235 "Can't click link if nothing is inside the A start/end tags" ...for ICQ committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 30 Oct 2003 21:55:29 +0000
parents 0721e3fe57c9
children 414c701ef1ff
comparison
equal deleted inserted replaced
7384:dc573236dc8b 7385:79d74929693c
2589 } 2589 }
2590 } break; 2590 } break;
2591 2591
2592 case 0x04: { /* Someone sent you a URL */ 2592 case 0x04: { /* Someone sent you a URL */
2593 if (i >= 2) { 2593 if (i >= 2) {
2594 gchar *uin = g_strdup_printf("%u", args->uin); 2594 if (msg2[1] != NULL) {
2595 gchar *message = g_strdup_printf("<A HREF=\"%s\">%s</A>", msg2[1], msg2[0]); 2595 gchar *uin = g_strdup_printf("%u", args->uin);
2596 serv_got_im(gc, uin, message, 0, time(NULL)); 2596 gchar *message = g_strdup_printf("<A HREF=\"%s\">%s</A>",
2597 g_free(uin); 2597 msg2[1],
2598 g_free(message); 2598 (msg2[0] && msg2[0][0]) ? msg2[0] : msg2[1]);
2599 serv_got_im(gc, uin, message, 0, time(NULL));
2600 g_free(uin);
2601 g_free(message);
2602 }
2599 } 2603 }
2600 } break; 2604 } break;
2601 2605
2602 case 0x06: { /* Someone requested authorization */ 2606 case 0x06: { /* Someone requested authorization */
2603 if (i >= 6) { 2607 if (i >= 6) {