Mercurial > pidgin.yaz
diff src/protocols/jabber/jabber.c @ 7322:ab828b8c3f22
[gaim-migrate @ 7908]
all sorts of stuff including tweaks to logging so it mostly works again
for jabber.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 24 Oct 2003 05:46:01 +0000 |
parents | dd4b4a187171 |
children | b250288fa948 |
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c Thu Oct 23 21:56:16 2003 +0000 +++ b/src/protocols/jabber/jabber.c Fri Oct 24 05:46:01 2003 +0000 @@ -361,6 +361,7 @@ js->chats = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); js->user = jabber_id_new(gaim_account_get_username(account)); + js->next_id = g_random_int(); if(!js->user) { gaim_connection_error(gc, _("Invalid Jabber ID")); @@ -654,6 +655,7 @@ js->callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); js->user = jabber_id_new(gaim_account_get_username(account)); + js->next_id = g_random_int(); if(!js->user) { gaim_connection_error(gc, _("Invalid Jabber ID")); @@ -762,7 +764,7 @@ char *jabber_get_next_id(JabberStream *js) { - return g_strdup_printf("gaim%d", js->next_id++); + return g_strdup_printf("gaim%x", js->next_id++); } void jabber_idle_set(GaimConnection *gc, int idle)