diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-20 20:13:57 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-20 20:13:57 +0800 |
commit | d86a86926c64f77e075185db4211687c76c7eb71 (patch) | |
tree | 4369711901ae4b780ec4eeff99fdadc2cad53111 | |
parent | 41aeabf93be8cb2f60d5b547da0cfcb5381d04dd (diff) | |
download | pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar.gz pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar.bz2 pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar.lz pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar.xz pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.tar.zst pttbbs-d86a86926c64f77e075185db4211687c76c7eb71.zip |
abort_bbs() if data of currutmp is wrong
( by cuser.userid[0] <-> currutmp->userid[0] )
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@483 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/talk.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 5ba9b7f3..e4f64a16 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.84 2002/08/09 13:18:26 kcwu Exp $ */ +/* $Id: talk.c,v 1.85 2002/08/20 12:13:57 in2 Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -2296,6 +2296,12 @@ t_users(void) int mode0 = currutmp->mode; int stat0 = currstat; + if( cuser.userid[0] != currutmp->userid[0] ){ + if( HAS_PERM(PERM_SYSOP) ) + vmsg("warning: currutmp userid is changed"); + else + abort_bbs(0); + } setutmpmode(LUSERS); userlist(); currutmp->mode = mode0; |