diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/syspost.c | 2 | ||||
-rw-r--r-- | mbbsd/user.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index fbed4c7f..99d0fd16 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -70,7 +70,7 @@ post_change_perm(int oldperm, int newperm, const char *sysopid, const char *user fprintf(fp, "§@ªÌ: [¨t²Î¦w¥þ§½] ¬ÝªO: Security\n" "¼ÐÃD: [¤½¦w³ø§i] ¯¸ªøקïÅv³ø§i\n" "®É¶¡: %s\n", ctime4(&now)); - for (i = 1; i < NUMPERMS; i++) { + for (i = 0; i < NUMPERMS; i++) { if (((oldperm >> i) & 1) != ((newperm >> i) & 1)) { fprintf(fp, " ¯¸ªø" ANSI_COLOR(1;32) "%s%s%s%s" ANSI_RESET "ªºÅv\n", sysopid, diff --git a/mbbsd/user.c b/mbbsd/user.c index 5c08c167..c88d26d9 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -685,12 +685,13 @@ uinfo_query(userec_t *u, int adminmode, int unum) outs("\nµù¥U¥¼¶W¹L¥b¦~¡A½Ð«·s¿é¤J\n"); i--; } + strcpy(witness[i], atuser.userid); + // Adjust upper or lower case } } if (i < 3) break; - i = 20; sprintf(title, "%s ªº±K½X«³]³qª¾ (by %s)",u->userid, cuser.userid); unlink("etc/updatepwd.log"); if(! (fp = fopen("etc/updatepwd.log", "w"))) @@ -701,12 +702,13 @@ uinfo_query(userec_t *u, int adminmode, int unum) u->userid, witness[0], witness[1], witness[2] ); fclose(fp); - post_file("Security", title, "etc/updatepwd.log", "[¨t²Î¦w¥þþ§½]"); + post_file("Security", title, "etc/updatepwd.log", "[¨t²Î¦w¥þ§½]"); mail_id(u->userid, title, "etc/updatepwd.log", cuser.userid); for(i=0; i<3; i++) { mail_id(witness[i], title, "etc/updatepwd.log", cuser.userid); } + i = 20; } if (!getdata(i++, 0, "½Ð³]©w·s±K½X¡G", buf, PASSLEN, NOECHO)) { |