Fixed the mobile phone number in the vCard so it has the correct
authorDave West <davew@uncensored.citadel.org>
Sat, 27 Oct 2007 15:15:57 +0000 (15:15 +0000)
committerDave West <davew@uncensored.citadel.org>
Sat, 27 Oct 2007 15:15:57 +0000 (15:15 +0000)
attribute name.

webcit/vcard_edit.c

index d3e83a78341fc777426438b9ad0442ba820d3fb7..a4067e104ee99bc739a4b6460829cc2e89e41504 100644 (file)
@@ -157,7 +157,7 @@ void do_edit_vcard(long msgnum, char *partnum, char *return_to, char *force_room
                                extract_token(faxtel, value, 0, ';', sizeof faxtel);
                        }
        
-                       else if (!strcasecmp(key, "tel;mobile")) {
+                       else if (!strcasecmp(key, "tel;cell")) {
                                extract_token(mobiletel, value, 0, ';', sizeof mobiletel);
                        }
        
@@ -446,7 +446,7 @@ void submit_vcard(void) {
        vcard_add_prop(v, "tel;home", bstr("hometel"));
        vcard_add_prop(v, "tel;work", bstr("worktel"));
        vcard_add_prop(v, "tel;fax", bstr("faxtel"));
-       vcard_add_prop(v, "tel;mobile", bstr("mobiletel"));
+       vcard_add_prop(v, "tel;cell", bstr("mobiletel"));
        vcard_add_prop(v, "email;internet", bstr("primary_inetemail"));
 
        for (i=0; i<num_tokens(bstr("other_inetemail"), '\n'); ++i) {