summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/edit.c2
-rw-r--r--mbbsd/guess.c4
-rw-r--r--mbbsd/mbbsd.c2
-rw-r--r--mbbsd/user.c12
4 files changed, 10 insertions, 10 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 6b30ea4e..1f13f64a 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1625,7 +1625,7 @@ vedit(char *fpath, int saveheader, int *islocal)
int last_margin;
int mode0 = currutmp->mode;
int destuid0 = currutmp->destuid;
- unsigned int money = 0;
+ int money = 0;
int interval = 0;
time_t th = now;
diff --git a/mbbsd/guess.c b/mbbsd/guess.c
index bd092b27..c4c2ee99 100644
--- a/mbbsd/guess.c
+++ b/mbbsd/guess.c
@@ -22,7 +22,7 @@ show_table(char TABLE[], char ifcomputer)
prints("\033[33m=================\033[m");
}
-static unsigned long int
+static long int
get_money(void)
{
int money, i;
@@ -215,7 +215,7 @@ int
guess_main()
{
char data[5];
- unsigned long int money;
+ long int money;
char computerwin = 0, youwin = 0;
int count = 0, c_count = 0;
char ifcomputer[2];
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 64795836..3ef7f0da 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -199,7 +199,7 @@ void
abort_bbs(int sig)
{
if (currmode)
- u_exit("AXXED");
+ u_exit("ABORTED");
exit(0);
}
diff --git a/mbbsd/user.c b/mbbsd/user.c
index f6fad13c..4d8e46c5 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -13,6 +13,7 @@ kill_user(int num)
{
userec_t u;
memset(&u, 0, sizeof(u));
+ log_usies("KILL", getuserid(num));
setuserid(num, "");
passwd_index_update(num, &u);
return 0;
@@ -201,7 +202,6 @@ violate_law(userec_t * u, int unum)
snprintf(src, sizeof(src), "home/%c/%s", u->userid[0], u->userid);
snprintf(dst, sizeof(dst), "tmp/%s", u->userid);
Rename(src, dst);
- log_usies("KILL", u->userid);
post_violatelaw(u->userid, cuser->userid, reason, "¬å°£ ID");
kill_user(unum);
@@ -291,7 +291,7 @@ uinfo_query(userec_t * u, int real, int unum)
int uid;
char ans[4], buf[STRLEN], *p;
char genbuf[200], reason[50];
- unsigned long int money = 0;
+ int money = 0;
fileheader_t fhdr;
int flag = 0, temp = 0, money_change = 0;
@@ -385,12 +385,12 @@ uinfo_query(userec_t * u, int real, int unum)
break;
}
if (real) {
- unsigned long int l;
+ int l;
if (HAS_PERM(PERM_BBSADM)) {
snprintf(genbuf, sizeof(genbuf), "%d", x.money);
if (getdata_str(i++, 0, "»È¦æ±b¤á¡G", buf, 10, DOECHO, genbuf))
if ((l = atol(buf)) != 0) {
- if (l != (unsigned)x.money) {
+ if (l != x.money) {
money_change = 1;
money = x.money;
x.money = l;
@@ -551,7 +551,7 @@ uinfo_query(userec_t * u, int real, int unum)
case '3':
i = setperms(x.userlevel, str_permid);
- if ((unsigned)i == x.userlevel)
+ if (i == x.userlevel)
fail++;
else {
flag = 1;
@@ -613,8 +613,8 @@ uinfo_query(userec_t * u, int real, int unum)
snprintf(src, sizeof(src), "home/%c/%s", x.userid[0], x.userid);
snprintf(dst, sizeof(dst), "tmp/%s", x.userid);
Rename(src, dst); /* do not remove user home */
- log_usies("KILL", x.userid);
kill_user(unum);
+ return;
} else
log_usies("SetUser", x.userid);
if (money_change)