buybuy plaintext important message.
[citadel.git] / webcit / useredit.c
index 81a5bd99545c9c5d7e2ca6f1fb4dbecf74637f6e..5a83ed1044da036a26eff54b7b4bdd8f1f7eec00 100644 (file)
@@ -101,6 +101,7 @@ UserListEntry* NewUserListEntry(StrBuf *SerializedUserList)
        ul->nPosts      = StrBufExtractNext_int( SerializedUserList, &Pos, '|');
        StrBufExtract_NextToken(ul->Passvoid,    SerializedUserList, &Pos, '|');
        ul->Flags = 0;
+       ul->HasBio = 0;
        ul->DaysTillPurge = -1;
        return ul;
 }
@@ -302,7 +303,9 @@ HashList *iterate_load_userlist(StrBuf *Target, WCTemplputParams *TP)
                }
 
                serv_puts("LBIO 1");
+               StrBuf_ServGetln(Buf);
                if (GetServerStatus(Buf, NULL) == 1)
+                       Done = 0;
                        while (!Done) {
                        len = StrBuf_ServGetln(Buf);
                        if ((len <0) || 
@@ -640,6 +643,24 @@ void display_edit_address_book_entry(const char *username, long usernum) {
        FreeStrBuf(&roomname);
 }
 
+/*
+ *  burge a user 
+ *  username the name of the user to remove
+ */
+void delete_user(char *username) {
+       wcsession *WCC = WC;
+       StrBuf *Buf;
+       
+       Buf = NewStrBuf();
+       serv_printf("ASUP %s|0|0|0|0|0|", username);
+       StrBuf_ServGetln(Buf);
+       if (GetServerStatus(Buf, NULL) != 2) 
+               StrBufAppendBuf(WCC->ImportantMsg, Buf, 4);
+
+       select_user_to_edit( bstr("username"));
+       FreeStrBuf(&Buf);
+}
+               
 
 void display_edituser(const char *supplied_username, int is_new) {
        const char *Pos;
@@ -757,24 +778,6 @@ void edituser(void) {
        }
 }
 
-/*
- *  burge a user 
- *  username the name of the user to remove
- */
-void delete_user(char *username) {
-       wcsession *WCC = WC;
-       StrBuf *Buf;
-       
-       Buf = NewStrBuf();
-       serv_printf("ASUP %s|0|0|0|0|0|", username);
-       StrBuf_ServGetln(Buf);
-       if (GetServerStatus(Buf, NULL) != 2) 
-               StrBufAppendBuf(WCC->ImportantMsg, Buf, 4);
-
-       select_user_to_edit( bstr("username"));
-       FreeStrBuf(&Buf);
-}
-               
 
 
 /*
@@ -792,7 +795,7 @@ void create_user(void) {
        serv_printf("CREU %s", username);
        StrBuf_ServGetln(Buf);
        if (GetServerStatus(Buf, &FullState) == 2) {
-               sprintf(WC->ImportantMessage, _("A new user has been created."));
+               AppendImportantMessage(_("A new user has been created."), -1);
                display_edituser(username, 1);
        }
        else if (FullState == 570) {
@@ -820,7 +823,12 @@ void _display_edituser(void) {
        display_edituser(NULL, 0);
 }
 
-void showuser(void) { do_template("user_show");}
+void showuser(void)
+{
+       output_headers(1, 0, 0, 0, 1, 0);
+       do_template("user_show");
+       end_burst();
+}
 
 
 void