Commit 037bf8a8 authored by deuce's avatar deuce
Browse files

"just some help file stuff." - RuneMaster

parent 75628338
......@@ -1628,7 +1628,7 @@ int edit_user(scfg_t *cfg, int usernum)
if (user.misc & INACTIVE)
strcpy(opt[i++],"Activate");
else
strcpy(opt[i++],"Deactivate");
strcpy(opt[i++],"Deactivate");
strcpy(opt[i++],"Personal");
strcpy(opt[i++],"Security");
strcpy(opt[i++],"Statistics");
......@@ -1740,7 +1740,6 @@ int getuser(scfg_t *cfg, user_t *user, char* str)
{
int i,j,last;
ushort un;
/* char* str ; */
struct user_list **opt;
int done=0;
......@@ -1749,7 +1748,6 @@ int getuser(scfg_t *cfg, user_t *user, char* str)
for(i=0;i<(MAX_OPTS+1);i++)
opt[i]=NULL;
/* strcpy(str, username); */
/* User List */
done=0;
while(!done) {
......@@ -2075,8 +2073,13 @@ int main(int argc, char** argv) {
strcpy(mopt[2],"User List");
mopt[3][0]=0;
uifc.helpbuf= "`User Editor:`\n"
"\nToDo: Add Help";
uifc.helpbuf= "`User Editor\n"
"`-----------\n\n"
"`New User : `Add a new user. This will created a default user using\n"
" some default entries that you can then edit.\n"
"`Find User : `Find a user using full or partial search name\n"
"`User List : `Display the complete User List. Users can be edited from\n"
" this list by highlighting a user and pressing Enter";
while(1) {
j=uifc.list(WIN_L2R|WIN_ESC|WIN_ACT|WIN_DYN|WIN_ORG|WIN_EXTKEYS,0,5,0,&main_dflt,&main_bar
......@@ -2087,17 +2090,17 @@ int main(int argc, char** argv) {
if(j==-8) { /* CTRL-F */
/* Find User */
continue;
finduser(&cfg,&user);
}
if(j <= -2)
continue;
if(j==-1) {
uifc.helpbuf= "`Exit Synchronet User Editor:`\n"
"\n"
"\nIf you want to exit the Synchronet user editor,"
"\nselect `Yes`. Otherwise, select `No` or hit ~ ESC ~.";
uifc.helpbuf= "`Exit Synchronet User Editor\n"
"`---------------------------\n\n"
"If you want to exit the Synchronet user editor,\n"
"select `Yes`. Otherwise, select `No` or hit ~ ESC ~.";
if(confirm("Exit Synchronet User Editor")==1)
bail(0);
continue;
......@@ -2139,3 +2142,4 @@ int main(int argc, char** argv) {
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment