From: Art Cancro Date: Wed, 19 Jun 2002 22:01:31 +0000 (+0000) Subject: * When editing another user's vCard, do a "transient goto" to their config X-Git-Tag: v7.86~6360 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=f5509157a0f7582b618687bb5913dbe628451d5d;p=citadel.git * When editing another user's vCard, do a "transient goto" to their config room so you don't automatically gain access to their config room. * When creating a user, go back to the "select user to edit" screen with the new user's account name pre-selected. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 47bb566f4..3cccdd1f3 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,10 @@ $Log$ +Revision 323.42 2002/06/19 22:01:31 ajc +* When editing another user's vCard, do a "transient goto" to their config + room so you don't automatically gain access to their config room. +* When creating a user, go back to the "select user to edit" screen with the + new user's account name pre-selected. + Revision 323.41 2002/06/17 03:48:44 ajc * Finished the thing to edit other users' vCards. @@ -842,3 +848,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/preferences.c b/webcit/preferences.c index c3f23f1c1..916f55824 100644 --- a/webcit/preferences.c +++ b/webcit/preferences.c @@ -36,7 +36,7 @@ void load_preferences(void) { lprintf(9, "entering load_preferences()\n"); - serv_printf("GOTO My Citadel Config"); + serv_printf("GOTO %s", USERCONFIGROOM); serv_gets(buf); if (buf[0] != '2') return; @@ -88,12 +88,12 @@ void save_preferences(void) { long msgnum = 0L; lprintf(9, "entering save_preferences()\n"); - serv_printf("GOTO My Citadel Config"); + serv_printf("GOTO %s", USERCONFIGROOM); serv_gets(buf); if (buf[0] != '2') { /* try to create the config room if not there */ - serv_printf("CRE8 1|My Citadel Config|4|0"); + serv_printf("CRE8 1|%s|4|0", USERCONFIGROOM); serv_gets(buf); - serv_printf("GOTO My Citadel Config"); + serv_printf("GOTO %s", USERCONFIGROOM); serv_gets(buf); if (buf[0] != '2') return; /* oh well. */ } diff --git a/webcit/useredit.c b/webcit/useredit.c index 540999254..0460848b6 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -30,7 +30,7 @@ -void select_user_to_edit(char *message) +void select_user_to_edit(char *message, char *preselect) { char buf[SIZ]; char username[SIZ]; @@ -55,7 +55,11 @@ void select_user_to_edit(char *message) if (buf[0] == '1') { while (serv_gets(buf), strcmp(buf, "000")) { extract(username, buf, 0); - wprintf("