ul->nPosts = StrBufExtractNext_int( SerializedUserList, &Pos, '|');
StrBufExtract_NextToken(ul->Passvoid, SerializedUserList, &Pos, '|');
ul->Flags = 0;
+ ul->HasBio = 0;
ul->DaysTillPurge = -1;
return ul;
}
}
serv_puts("LBIO 1");
+ StrBuf_ServGetln(Buf);
if (GetServerStatus(Buf, NULL) == 1)
+ Done = 0;
while (!Done) {
len = StrBuf_ServGetln(Buf);
if ((len <0) ||
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;
}
}
-/*
- * 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);
-}
-
/*
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) {
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