diff plugins/lagmeter.c @ 2480:22009b378e5a

[gaim-migrate @ 2493] maybe this will fix some lagmeter oddities. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 10 Oct 2001 22:25:33 +0000
parents b31f0edaf48d
children 07ba973897e7
line wrap: on
line diff
--- a/plugins/lagmeter.c	Wed Oct 10 21:25:42 2001 +0000
+++ b/plugins/lagmeter.c	Wed Oct 10 22:25:33 2001 +0000
@@ -94,12 +94,13 @@
 				serv_send_im(my_gc, buf, m, 1);
 				g_free(buf);
 			} else if (!strchr(my_gc->username, '/')) {
-				char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL);
+				char *buf = g_strconcat(my_gc->username, "/GAIM", NULL);
 				serv_send_im(my_gc, buf, m, 1);
 				g_free(buf);
 			} else
 				serv_send_im(my_gc, my_gc->username, m, 1);
-		} else if (strcmp(my_gc->username, my_gc->displayname))
+		} else if ((my_gc->protocol <= PROTO_OSCAR || my_gc->protocol == PROTO_IRC)
+				&& strcmp(my_gc->username, my_gc->displayname))
 			serv_send_im(my_gc, my_gc->displayname, m, 1);
 		else
 			serv_send_im(my_gc, my_gc->username, m, 1);