comparison plugins/lagmeter.c @ 2353:abdf5f081b29

[gaim-migrate @ 2366] what the hell? committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 24 Sep 2001 16:35:27 +0000
parents 4e2d8992774e
children b31f0edaf48d
comparison
equal deleted inserted replaced
2352:39e66e80bb31 2353:abdf5f081b29
85 gettimeofday(&my_lag_tv, NULL); 85 gettimeofday(&my_lag_tv, NULL);
86 if (g_slist_find(connections, my_gc)) { 86 if (g_slist_find(connections, my_gc)) {
87 char *m = g_strdup(MY_LAG_STRING); 87 char *m = g_strdup(MY_LAG_STRING);
88 if (my_gc->protocol == PROTO_JABBER) { 88 if (my_gc->protocol == PROTO_JABBER) {
89 if (!strchr(my_gc->username, '@')) { 89 if (!strchr(my_gc->username, '@')) {
90 char buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL); 90 char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL);
91 serv_send_im(my_gc, buf, m, 1); 91 serv_send_im(my_gc, buf, m, 1);
92 g_free(buf); 92 g_free(buf);
93 } else if (!strchr(my_gc->username, '/')) { 93 } else if (!strchr(my_gc->username, '/')) {
94 char buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL); 94 char *buf = g_strconcat(my_gc->username, "@jabber.org/GAIM", NULL);
95 serv_send_im(my_gc, buf, m, 1); 95 serv_send_im(my_gc, buf, m, 1);
96 g_free(buf); 96 g_free(buf);
97 } else 97 } else
98 serv_send_im(my_gc, my_gc->username, m, 1); 98 serv_send_im(my_gc, my_gc->username, m, 1);
99 } else 99 } else