Mercurial > hg
comparison mcabber/src/commands.c @ 1003:c8b1a52b2fd6
Initial VCard retrieval support
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Tue, 07 Nov 2006 22:43:17 +0100 |
parents | 6e2bfd1ffded |
children | b57a01ffeed6 |
comparison
equal
deleted
inserted
replaced
1002:dd9e7eb5f8a8 | 1003:c8b1a52b2fd6 |
---|---|
210 compl_add_category_word(COMPL_AUTH, "request"); | 210 compl_add_category_word(COMPL_AUTH, "request"); |
211 compl_add_category_word(COMPL_AUTH, "request_unsubscribe"); | 211 compl_add_category_word(COMPL_AUTH, "request_unsubscribe"); |
212 | 212 |
213 // Request (query) category | 213 // Request (query) category |
214 compl_add_category_word(COMPL_REQUEST, "time"); | 214 compl_add_category_word(COMPL_REQUEST, "time"); |
215 compl_add_category_word(COMPL_REQUEST, "vcard"); | |
215 compl_add_category_word(COMPL_REQUEST, "version"); | 216 compl_add_category_word(COMPL_REQUEST, "version"); |
216 | 217 |
217 // Events category | 218 // Events category |
218 compl_add_category_word(COMPL_EVENTS, "accept"); | 219 compl_add_category_word(COMPL_EVENTS, "accept"); |
219 compl_add_category_word(COMPL_EVENTS, "ignore"); | 220 compl_add_category_word(COMPL_EVENTS, "ignore"); |
2215 // Quick check... | 2216 // Quick check... |
2216 if (!strcasecmp(type, "version")) | 2217 if (!strcasecmp(type, "version")) |
2217 numtype = iqreq_version; | 2218 numtype = iqreq_version; |
2218 else if (!strcasecmp(type, "time")) | 2219 else if (!strcasecmp(type, "time")) |
2219 numtype = iqreq_time; | 2220 numtype = iqreq_time; |
2221 else if (!strcasecmp(type, "vcard")) | |
2222 numtype = iqreq_vcard; | |
2220 else if (!strcasecmp(type, "show_list")) { | 2223 else if (!strcasecmp(type, "show_list")) { |
2221 // Undocumented command, for debugging purposes only | 2224 // Undocumented command, for debugging purposes only |
2222 jb_iqs_display_list(); | 2225 jb_iqs_display_list(); |
2223 free_arg_lst(paramlst); | 2226 free_arg_lst(paramlst); |
2224 return; | 2227 return; |
2258 | 2261 |
2259 if (jid) { | 2262 if (jid) { |
2260 switch (numtype) { | 2263 switch (numtype) { |
2261 case iqreq_version: | 2264 case iqreq_version: |
2262 case iqreq_time: | 2265 case iqreq_time: |
2266 case iqreq_vcard: | |
2263 jb_request(jid, numtype); | 2267 jb_request(jid, numtype); |
2264 break; | 2268 break; |
2265 default: | 2269 default: |
2266 break; | 2270 break; |
2267 } | 2271 } |