Mercurial > pidgin
comparison src/protocols/jabber/jabber.c @ 3596:bb966d68f9e3
[gaim-migrate @ 3698]
I like typing notifcation. I think I'll marry it.
Also, if I'm going to go around mentioning gaim on resumes, I can't very
well tell people to look for "KingAnt"... :-)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 06 Oct 2002 05:01:50 +0000 |
parents | a662c133d1fd |
children | 95669ff6dc3b |
comparison
equal
deleted
inserted
replaced
3595:1e60a05c7482 | 3596:bb966d68f9e3 |
---|---|
2207 if(!jri || !jri->has_composing) | 2207 if(!jri || !jri->has_composing) |
2208 return 0; | 2208 return 0; |
2209 | 2209 |
2210 if((realwho = get_realwho(gjc, who, FALSE, NULL)) == NULL) | 2210 if((realwho = get_realwho(gjc, who, FALSE, NULL)) == NULL) |
2211 return 0; | 2211 return 0; |
2212 | 2212 |
2213 x = xmlnode_new_tag("message"); | 2213 x = xmlnode_new_tag("message"); |
2214 xmlnode_put_attrib(x, "to", realwho); | 2214 xmlnode_put_attrib(x, "to", realwho); |
2215 xmlnode_insert_tag(x, "gaim"); | 2215 xmlnode_insert_tag(x, "gaim"); |
2216 | 2216 |
2217 y = xmlnode_insert_tag(x, "x"); | 2217 y = xmlnode_insert_tag(x, "x"); |
2218 xmlnode_put_attrib(y, "xmlns", "jabber:x:event"); | 2218 xmlnode_put_attrib(y, "xmlns", "jabber:x:event"); |
2219 | 2219 |
2220 if(typing) | 2220 if(typing == TYPING) |
2221 xmlnode_insert_tag(y, "composing"); | 2221 xmlnode_insert_tag(y, "composing"); |
2222 | 2222 |
2223 gjab_send(((struct jabber_data *)gc->proto_data)->gjc, x); | 2223 gjab_send(((struct jabber_data *)gc->proto_data)->gjc, x); |
2224 xmlnode_free(x); | 2224 xmlnode_free(x); |
2225 g_free(realwho); | 2225 g_free(realwho); |
2226 return JABBER_TYPING_NOTIFY_INT; | 2226 return JABBER_TYPING_NOTIFY_INT; |
2227 } | 2227 } |