Mercurial > pidgin
diff libpurple/protocols/jabber/disco.c @ 24855:0700833f0c5d
Commit patch #7670: Implement xep-0191 (simple blocking) for jabber protocols
from Vijay Raghunathan (a co-worker of mine). We're testing this at Meebo
and it seems to work ok. Closes #7670.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Dec 2008 07:51:06 +0000 |
parents | 10382f1e1353 |
children | f0c2e27c7ae7 9195955395b6 1d3274111180 a73791d35fcc 1d1d1829de11 7d6280b006a8 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c Sun Dec 21 18:01:37 2008 +0000 +++ b/libpurple/protocols/jabber/disco.c Mon Dec 22 07:51:06 2008 +0000 @@ -355,6 +355,11 @@ jabber_adhoc_server_get_list(js); } + /* If the server supports blocking, request the block list */ + if (js->server_caps & JABBER_CAP_BLOCKING) { + jabber_request_block_list(js); + } + /* If there are manually specified bytestream proxies, query them */ ft_proxies = purple_account_get_string(js->gc->account, "ft_proxies", NULL); if (ft_proxies) { @@ -454,6 +459,8 @@ jabber_google_roster_init(js); } else if (!strcmp("http://jabber.org/protocol/commands", var)) { js->server_caps |= JABBER_CAP_ADHOC; + } else if (!strcmp("urn:xmpp:blocking", var)) { + js->server_caps |= JABBER_CAP_BLOCKING; } }