comparison libpurple/protocols/qq/keep_alive.c @ 18807:b9a0b1bd321b

Improve a bunch of strings in QQ
author Mark Doliner <mark@kingant.net>
date Mon, 06 Aug 2007 00:14:47 +0000
parents b8572b937c09
children 44b4e8bd759b
comparison
equal deleted inserted replaced
18803:abb9aac69507 18807:b9a0b1bd321b
82 if (NULL == (segments = split_data(data, len, "\x1f", 6))) 82 if (NULL == (segments = split_data(data, len, "\x1f", 6)))
83 return; 83 return;
84 /* segments[0] and segment[1] are all 0x30 ("0") */ 84 /* segments[0] and segment[1] are all 0x30 ("0") */
85 qd->all_online = strtol(segments[2], NULL, 10); 85 qd->all_online = strtol(segments[2], NULL, 10);
86 if(0 == qd->all_online) 86 if(0 == qd->all_online)
87 purple_connection_error(gc, _("Keep alive error, seems connection lost!")); 87 purple_connection_error(gc, _("Keep alive error"));
88 g_free(qd->my_ip); 88 g_free(qd->my_ip);
89 qd->my_ip = g_strdup(segments[3]); 89 qd->my_ip = g_strdup(segments[3]);
90 qd->my_port = strtol(segments[4], NULL, 10); 90 qd->my_port = strtol(segments[4], NULL, 10);
91 g_strfreev(segments); 91 g_strfreev(segments);
92 } else 92 } else