Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp_helper.c @ 1999:51f032d5ca22
Add support for XEP-0115 Entity Capabilities, with offline cache
author | Hermitifier |
---|---|
date | Mon, 03 Oct 2011 16:00:34 +0200 |
parents | 45f0f0f60656 |
children | 46a21258ad91 |
comparison
equal
deleted
inserted
replaced
1998:41667bc02883 | 1999:51f032d5ca22 |
---|---|
222 return ver_notavail; | 222 return ver_notavail; |
223 | 223 |
224 caps_add(""); | 224 caps_add(""); |
225 caps_set_identity("", "client", PACKAGE_STRING, "pc"); | 225 caps_set_identity("", "client", PACKAGE_STRING, "pc"); |
226 caps_add_feature("", NS_DISCO_INFO); | 226 caps_add_feature("", NS_DISCO_INFO); |
227 caps_add_feature("", NS_CAPS); | |
227 caps_add_feature("", NS_MUC); | 228 caps_add_feature("", NS_MUC); |
228 // advertise ChatStates only if they aren't disabled | 229 // advertise ChatStates only if they aren't disabled |
229 if (!settings_opt_get_int("disable_chatstates")) | 230 if (!settings_opt_get_int("disable_chatstates")) |
230 caps_add_feature("", NS_CHATSTATES); | 231 caps_add_feature("", NS_CHATSTATES); |
231 caps_add_feature("", NS_TIME); | 232 caps_add_feature("", NS_TIME); |