summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index 1a980e35..182040c8 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -57,7 +57,12 @@ passwd_update_money(int num) /* update money only */
if (num < 1 || num > MAX_USERS)
return -1;
-
+ if (num == usernum)
+ {
+ cuser->money = money;
+ return 0;
+ }
+
sethomefile(path, getuserid(num), ".passwd");
if ((pwdfd = open(path, O_WRONLY)) < 0)