comparison src/server.c @ 14:d5119dc66284

[gaim-migrate @ 23] Small fix to the lagometer committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 23 Mar 2000 09:53:31 +0000
parents 2846a03bda67
children c56db1b46b0d
comparison
equal deleted inserted replaced
13:42caca2f964f 14:d5119dc66284
80 update_all_buddies(); 80 update_all_buddies();
81 81
82 time(&t); 82 time(&t);
83 83
84 gettimeofday(&lag_tv, NULL); 84 gettimeofday(&lag_tv, NULL);
85 serv_send_im(current_user->username, LAGOMETER_STR, 1); 85 if (!(general_options & OPT_GEN_SHOW_LAGMETER))
86 serv_send_im(current_user->username, LAGOMETER_STR, 1);
86 87
87 if (report_idle != IDLE_GAIM) 88 if (report_idle != IDLE_GAIM)
88 return TRUE; 89 return TRUE;
89 90
90 91
451 char *nname; 452 char *nname;
452 453
453 nname = g_strdup(normalize(name)); 454 nname = g_strdup(normalize(name));
454 455
455 if (!strcasecmp(normalize(name), nname)) { 456 if (!strcasecmp(normalize(name), nname)) {
457 if (!(general_options & OPT_GEN_SHOW_LAGMETER))
458 {
456 if (!strcmp(message, LAGOMETER_STR)) { 459 if (!strcmp(message, LAGOMETER_STR)) {
457 struct timeval tv; 460 struct timeval tv;
458 int ms; 461 int ms;
459 462
460 gettimeofday(&tv, NULL); 463 gettimeofday(&tv, NULL);
465 468
466 update_lagometer(ms); 469 update_lagometer(ms);
467 g_free(nname); 470 g_free(nname);
468 return; 471 return;
469 } 472 }
470 473 }
471 } 474 }
472 g_free(nname); 475 g_free(nname);
473 476
474 cnv = find_conversation(name); 477 cnv = find_conversation(name);
475 478