diff 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
line wrap: on
line diff
--- a/mcabber/src/commands.c	Tue Nov 07 22:21:39 2006 +0100
+++ b/mcabber/src/commands.c	Tue Nov 07 22:43:17 2006 +0100
@@ -212,6 +212,7 @@
 
   // Request (query) category
   compl_add_category_word(COMPL_REQUEST, "time");
+  compl_add_category_word(COMPL_REQUEST, "vcard");
   compl_add_category_word(COMPL_REQUEST, "version");
 
   // Events category
@@ -2217,6 +2218,8 @@
       numtype = iqreq_version;
     else if (!strcasecmp(type, "time"))
       numtype = iqreq_time;
+    else if (!strcasecmp(type, "vcard"))
+      numtype = iqreq_vcard;
     else if (!strcasecmp(type, "show_list")) {
       // Undocumented command, for debugging purposes only
       jb_iqs_display_list();
@@ -2260,6 +2263,7 @@
     switch (numtype) {
       case iqreq_version:
       case iqreq_time:
+      case iqreq_vcard:
           jb_request(jid, numtype);
           break;
       default: