Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jab_iq.c @ 687:426145046b93
Minor format change in IQ id string
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 07 Feb 2006 21:14:47 +0100 |
parents | 98de2d166a11 |
children | bdc1184f6877 |
comparison
equal
deleted
inserted
replaced
686:98de2d166a11 | 687:426145046b93 |
---|---|
53 if (timeout) | 53 if (timeout) |
54 new_iqs->ts_expire = now_t + timeout; | 54 new_iqs->ts_expire = now_t + timeout; |
55 new_iqs->type = type; | 55 new_iqs->type = type; |
56 new_iqs->xmldata = jutil_iqnew(type, (char*)ns); | 56 new_iqs->xmldata = jutil_iqnew(type, (char*)ns); |
57 if (prefix) | 57 if (prefix) |
58 new_iqs->id = g_strdup_printf("%s%d", prefix, iqs_idn); | 58 new_iqs->id = g_strdup_printf("%s_%d", prefix, iqs_idn); |
59 else | 59 else |
60 new_iqs->id = g_strdup_printf("%d", iqs_idn); | 60 new_iqs->id = g_strdup_printf("%d", iqs_idn); |
61 xmlnode_put_attrib(new_iqs->xmldata, "id", new_iqs->id); | 61 xmlnode_put_attrib(new_iqs->xmldata, "id", new_iqs->id); |
62 | 62 |
63 iqs_list = g_slist_append(iqs_list, new_iqs); | 63 iqs_list = g_slist_append(iqs_list, new_iqs); |