comparison 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
comparison
equal deleted inserted replaced
2479:66b27e902b7b 2480:22009b378e5a
92 if (!strchr(my_gc->username, '@')) { 92 if (!strchr(my_gc->username, '@')) {
93 char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL); 93 char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL);
94 serv_send_im(my_gc, buf, m, 1); 94 serv_send_im(my_gc, buf, m, 1);
95 g_free(buf); 95 g_free(buf);
96 } else if (!strchr(my_gc->username, '/')) { 96 } else if (!strchr(my_gc->username, '/')) {
97 char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL); 97 char *buf = g_strconcat(my_gc->username, "/GAIM", NULL);
98 serv_send_im(my_gc, buf, m, 1); 98 serv_send_im(my_gc, buf, m, 1);
99 g_free(buf); 99 g_free(buf);
100 } else 100 } else
101 serv_send_im(my_gc, my_gc->username, m, 1); 101 serv_send_im(my_gc, my_gc->username, m, 1);
102 } else if (strcmp(my_gc->username, my_gc->displayname)) 102 } else if ((my_gc->protocol <= PROTO_OSCAR || my_gc->protocol == PROTO_IRC)
103 && strcmp(my_gc->username, my_gc->displayname))
103 serv_send_im(my_gc, my_gc->displayname, m, 1); 104 serv_send_im(my_gc, my_gc->displayname, m, 1);
104 else 105 else
105 serv_send_im(my_gc, my_gc->username, m, 1); 106 serv_send_im(my_gc, my_gc->username, m, 1);
106 g_free(m); 107 g_free(m);
107 return TRUE; 108 return TRUE;