Mercurial > pidgin.yaz
comparison src/gaimrc.c @ 1155:f4d4a14752ee
[gaim-migrate @ 1165]
Heres the rest of the BP crap.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Tue, 28 Nov 2000 10:20:23 +0000 |
parents | ce935e673907 |
children | 7aec3f881c98 |
comparison
equal
deleted
inserted
replaced
1154:938d9cd76148 | 1155:f4d4a14752ee |
---|---|
277 p = parse_line(buf); | 277 p = parse_line(buf); |
278 if (!strcmp(p->option, "entry")) | 278 if (!strcmp(p->option, "entry")) |
279 { | 279 { |
280 b = g_new0(struct buddy_pounce, 1); | 280 b = g_new0(struct buddy_pounce, 1); |
281 | 281 |
282 g_snprintf(b->name, sizeof(b->name), "%s", p->value[1]); | 282 g_snprintf(b->name, sizeof(b->name), "%s", p->value[0]); |
283 g_snprintf(b->message, sizeof(b->message), "%s", p->value[2]); | 283 g_snprintf(b->message, sizeof(b->message), "%s", p->value[1]); |
284 g_snprintf(b->pouncer, sizeof(b->pouncer), "%s", p->value[0]); | 284 |
285 | 285 b->popup = atoi(p->value[2]); |
286 b->popup = atoi(p->value[3]); | 286 b->sendim = atoi(p->value[3]); |
287 b->sendim = atoi(p->value[4]); | |
288 | 287 |
289 /* Let's check our version and see what's going on here */ | 288 /* Let's check our version and see what's going on here */ |
290 if ((p->value[5]) && (strlen(p->value[5]) > 0)) | 289 if ((p->value[4]) && (strlen(p->value[4]) > 0)) |
291 { | 290 { |
292 /* If we have data, lets use it */ | 291 /* If we have data, lets use it */ |
293 b->signon = atoi(p->value[5]); | 292 g_snprintf(b->pouncer, sizeof(b->pouncer), "%s", p->value[4]); |
294 b->unaway = atoi(p->value[6]); | 293 b->protocol = atoi(p->value[5]); |
295 b->unidle = atoi(p->value[7]); | 294 b->signon = atoi(p->value[6]); |
295 b->unaway = atoi(p->value[7]); | |
296 b->unidle = atoi(p->value[8]); | |
296 } | 297 } |
297 else | 298 else |
298 { | 299 { |
299 /* Otherwise, we have old info. Let's adjust */ | 300 /* Otherwise, we have old info. Let's adjust */ |
300 b->signon = 1; | 301 b->signon = 1; |
328 else { | 329 else { |
329 str2 = malloc(1); | 330 str2 = malloc(1); |
330 str2[0] = 0; | 331 str2[0] = 0; |
331 } | 332 } |
332 | 333 |
333 fprintf(f, "\tentry { %s } { %s } { %s } { %d } { %d } { %d } { %d } { %d }\n", b->pouncer, str1, str2, b->popup, b->sendim, b->signon, b->unaway, b->unidle); | 334 fprintf(f, "\tentry { %s } { %s } { %d } { %d } { %s } { %d } { %d } { %d } { %d }\n", str1, str2, b->popup, b->sendim, b->pouncer, b->protocol, b->signon, b->unaway, b->unidle); |
334 | 335 |
335 /* escape_text2 uses malloc(), so we don't want to g_free these */ | 336 /* escape_text2 uses malloc(), so we don't want to g_free these */ |
336 free(str1); | 337 free(str1); |
337 free(str2); | 338 free(str2); |
338 | 339 |