Mercurial > pidgin.yaz
comparison libpurple/protocols/bonjour/bonjour.c @ 21829:cc0809ec0c85
This is the second part of the fix to support having multiple presence records in Bonjour (and also supporting multiple presences using the same IP). Incoming conversations are no longer immediately attached to a buddy - we use an algorithm to match a conversation to a buddy based on the IP and, if possible the "from" attribute of the stream or the first tag in the stream. Thanks to Sjoerd Simons from Telepahy Salut for noticing and suggesting the algorithm. Fixes #4187. It'd be good if a few people test this.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 14 Dec 2007 21:44:34 +0000 |
parents | 32629dbb0bb9 |
children | c38d72677c8a 60f5abc6cf0c |
comparison
equal
deleted
inserted
replaced
21828:85fcbd3b9d32 | 21829:cc0809ec0c85 |
---|---|
107 | 107 |
108 gc->flags |= PURPLE_CONNECTION_HTML; | 108 gc->flags |= PURPLE_CONNECTION_HTML; |
109 gc->proto_data = bd = g_new0(BonjourData, 1); | 109 gc->proto_data = bd = g_new0(BonjourData, 1); |
110 | 110 |
111 /* Start waiting for jabber connections (iChat style) */ | 111 /* Start waiting for jabber connections (iChat style) */ |
112 bd->jabber_data = g_new(BonjourJabber, 1); | 112 bd->jabber_data = g_new0(BonjourJabber, 1); |
113 bd->jabber_data->port = BONJOUR_DEFAULT_PORT_INT; | 113 bd->jabber_data->port = BONJOUR_DEFAULT_PORT_INT; |
114 bd->jabber_data->account = account; | 114 bd->jabber_data->account = account; |
115 | 115 |
116 if (bonjour_jabber_start(bd->jabber_data) == -1) { | 116 if (bonjour_jabber_start(bd->jabber_data) == -1) { |
117 /* Send a message about the connection error */ | 117 /* Send a message about the connection error */ |