* locate_user_vcard() wasn't using either of its supplied parameters. Removed the...
authorArt Cancro <ajc@citadel.org>
Mon, 5 Jan 2009 21:30:46 +0000 (21:30 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 5 Jan 2009 21:30:46 +0000 (21:30 +0000)
webcit/auth.c
webcit/useredit.c
webcit/webcit.h

index 77c2d457f503996e1c3a79aaa9c839c007a570e1..93480d86bcc9f46b7e1651596cfaeed048597ed2 100644 (file)
@@ -722,7 +722,7 @@ void display_reg(int during_login)
                return;
        }
 
-       vcard_msgnum = locate_user_vcard(WC->wc_fullname, -1);
+       vcard_msgnum = locate_user_vcard_in_this_room();
        if (vcard_msgnum < 0L) {
                if (during_login) do_welcome();
                else display_main_menu();
index 728580dcd4332ee175ea29f1d40d9d5500ee1ede..6228f75081ebb251a4dc47843587157efc0db74e 100644 (file)
@@ -364,13 +364,11 @@ int ConditionalUserAccess(WCTemplateToken *Tokens, void *Context, int ContextTyp
                return 0;
 }
 
-/**
+/*
  *  Locate the message number of a user's vCard in the current room
- *  username the plaintext name of the user
- *  usernum the number of the user on the citadel server
- * \return the message id of his vcard
+ *  Returns the message id of his vcard
  */
-long locate_user_vcard(char *username, long usernum) {
+long locate_user_vcard_in_this_room() {
        char buf[SIZ];
        long vcard_msgnum = (-1L);
        char content_type[SIZ];
@@ -466,7 +464,7 @@ void display_edit_address_book_entry(char *username, long usernum) {
                }
        }
 
-       vcard_msgnum = locate_user_vcard(username, usernum);
+       vcard_msgnum = locate_user_vcard_in_this_room();
 
        if (vcard_msgnum < 0) {
                sprintf(error_message,
index 8c6104a9934e2fd7281724dc75465f42b22324b0..c1a589dd123ecb2ff9b114bda040085d562e7c06 100644 (file)
@@ -664,7 +664,7 @@ int read_server_binary(StrBuf *Ret, size_t total_len);
 int StrBuf_ServGetBLOB(StrBuf *buf, long BlobSize);
 int read_server_text(StrBuf *Buf, long *nLines);
 int goto_config_room(void);
-long locate_user_vcard(char *username, long usernum);
+long locate_user_vcard_in_this_room(void);
 void sleeeeeeeeeep(int);
 void http_transmit_thing(const char *content_type, int is_static);
 long unescape_input(char *buf);