comparison src/gaimrc.c @ 1139:ce935e673907

[gaim-migrate @ 1149] Ok, I stayed up later than I had expected to. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Sun, 26 Nov 2000 11:46:49 +0000
parents 5b5d03dfa48a
children f4d4a14752ee
comparison
equal deleted inserted replaced
1138:68f2f021ad1b 1139:ce935e673907
34 #include <gtk/gtk.h> 34 #include <gtk/gtk.h>
35 #include "gaim.h" 35 #include "gaim.h"
36 36
37 /* for people like myself, who are too lazy to add an away msg :) */ 37 /* for people like myself, who are too lazy to add an away msg :) */
38 #define BORING_DEFAULT_AWAY_MSG "sorry, i ran out for a while. bbl" 38 #define BORING_DEFAULT_AWAY_MSG "sorry, i ran out for a while. bbl"
39 #define MAX_VALUES 7 39 #define MAX_VALUES 10
40 40
41 GList *aim_users = NULL; 41 GList *aim_users = NULL;
42 int general_options; 42 int general_options;
43 int display_options; 43 int display_options;
44 int sound_options; 44 int sound_options;
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[0]); 282 g_snprintf(b->name, sizeof(b->name), "%s", p->value[1]);
283 g_snprintf(b->message, sizeof(b->message), "%s", p->value[1]); 283 g_snprintf(b->message, sizeof(b->message), "%s", p->value[2]);
284 284 g_snprintf(b->pouncer, sizeof(b->pouncer), "%s", p->value[0]);
285 b->popup = atoi(p->value[2]); 285
286 b->sendim = atoi(p->value[3]); 286 b->popup = atoi(p->value[3]);
287 b->sendim = atoi(p->value[4]);
287 288
288 /* Let's check our version and see what's going on here */ 289 /* Let's check our version and see what's going on here */
289 if ((p->value[4]) && (strlen(p->value[4]) > 0)) 290 if ((p->value[5]) && (strlen(p->value[5]) > 0))
290 { 291 {
291 /* If we have data, lets use it */ 292 /* If we have data, lets use it */
292 b->signon = atoi(p->value[4]); 293 b->signon = atoi(p->value[5]);
293 b->unaway = atoi(p->value[5]); 294 b->unaway = atoi(p->value[6]);
294 b->unidle = atoi(p->value[6]); 295 b->unidle = atoi(p->value[7]);
295 } 296 }
296 else 297 else
297 { 298 {
298 /* Otherwise, we have old info. Let's adjust */ 299 /* Otherwise, we have old info. Let's adjust */
299 b->signon = 1; 300 b->signon = 1;
327 else { 328 else {
328 str2 = malloc(1); 329 str2 = malloc(1);
329 str2[0] = 0; 330 str2[0] = 0;
330 } 331 }
331 332
332 fprintf(f, "\tentry { %s } { %s } { %d } { %d } { %d } { %d } { %d }\n", str1, str2, b->popup, b->sendim, b->signon, b->unaway, b->unidle); 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);
333 334
334 /* escape_text2 uses malloc(), so we don't want to g_free these */ 335 /* escape_text2 uses malloc(), so we don't want to g_free these */
335 free(str1); 336 free(str1);
336 free(str2); 337 free(str2);
337 338