changeset 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 42caca2f964f
children b9cc0a3a68b2
files ChangeLog src/server.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 23 07:52:04 2000 +0000
+++ b/ChangeLog	Thu Mar 23 09:53:31 2000 +0000
@@ -7,6 +7,7 @@
 	* GNOME Applet support works better
 	  (thanks to Eric Warmenhoven for the patch)
 	* Support for displaying true type fonts
+	* Fixed the Lag-Meter Option
 	
 version 0.9.11:
 	* <STRIKE>Strike Tag Support</STRIKE> :-)
--- a/src/server.c	Thu Mar 23 07:52:04 2000 +0000
+++ b/src/server.c	Thu Mar 23 09:53:31 2000 +0000
@@ -82,7 +82,8 @@
 	time(&t);
 
         gettimeofday(&lag_tv, NULL);
-	serv_send_im(current_user->username, LAGOMETER_STR, 1);
+	if (!(general_options & OPT_GEN_SHOW_LAGMETER))
+		serv_send_im(current_user->username, LAGOMETER_STR, 1);
 
 	if (report_idle != IDLE_GAIM)
                 return TRUE;
@@ -453,6 +454,8 @@
 	nname = g_strdup(normalize(name));
 
 	if (!strcasecmp(normalize(name), nname)) {
+	if (!(general_options & OPT_GEN_SHOW_LAGMETER))
+	{
 		if (!strcmp(message, LAGOMETER_STR)) {
 			struct timeval tv;
                         int ms;
@@ -467,7 +470,7 @@
 			g_free(nname);
                         return;
 		}
-
+	}
 	}
 	g_free(nname);