diff options
| author | kenobi <kenobi@rhea> | 2007-12-19 00:59:35 +0100 | 
|---|---|---|
| committer | kenobi <kenobi@rhea> | 2007-12-19 00:59:35 +0100 | 
| commit | eded1f703a8f5d2272b9d294d8e3dfb48fa302b4 (patch) | |
| tree | 9f372f50d123a258640c91a6dc3c027d9c8df4aa /protocols/jabber/conference.c | |
| parent | dc0ba9c85539533349353713162f94077fb27be3 (diff) | |
Merged in 280..288 from upstream (e.g. PING)
Diffstat (limited to 'protocols/jabber/conference.c')
| -rw-r--r-- | protocols/jabber/conference.c | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c index c5bc0e68..074412ec 100644 --- a/protocols/jabber/conference.c +++ b/protocols/jabber/conference.c @@ -175,6 +175,27 @@ int jabber_chat_leave( struct groupchat *c, const char *reason )  	return 1;  } +void jabber_chat_invite( struct groupchat *c, char *who, char *message ) +{ +	struct xt_node *node; +	struct im_connection *ic = c->ic; +	struct jabber_chat *jc = c->data; + +	node = xt_new_node( "reason", message, NULL );  + +	node = xt_new_node( "invite", NULL, node ); +	xt_add_attr( node, "to", who );  + +	node = xt_new_node( "x", NULL, node );  +	xt_add_attr( node, "xmlns", XMLNS_MUC_USER );  +	 +	node = jabber_make_packet( "message", NULL, jc->name, node );  + +	jabber_write_packet( ic, node );  + +	xt_free_node( node ); +} +  /* Not really the same syntax as the normal pkt_ functions, but this isn't     called by the xmltree parser directly and this way I can add some extra     parameters so we won't have to repeat too many things done by the caller | 
