From d86a86926c64f77e075185db4211687c76c7eb71 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 20 Aug 2002 12:13:57 +0000 Subject: 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 --- mbbsd/talk.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3