summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-08 01:19:47 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-08 01:19:47 +0800
commitaf701fbefaca5c71904190f96d59284fff4cfb3d (patch)
tree34bc3b2a8eb35ff4cf26cd65e5dbe0d72a28d91f
parent896717a8cd3579272ba3195a047f4bd4e1d98a49 (diff)
downloadpttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar.gz
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar.bz2
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar.lz
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar.xz
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.tar.zst
pttbbs-af701fbefaca5c71904190f96d59284fff4cfb3d.zip
gamle and talk bug fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@304 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/gamble.c7
-rw-r--r--mbbsd/talk.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index 541dd451..5409330d 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -1,4 +1,4 @@
-/* $Id: gamble.c,v 1.4 2002/06/04 13:08:33 in2 Exp $ */
+/* $Id: gamble.c,v 1.5 2002/06/07 17:19:47 ptt Exp $ */
#include "bbs.h"
#ifndef _BBS_UTIL_C_
@@ -298,14 +298,14 @@ int openticket(int bid) {
setbfile(buf, bh->brdname, FN_TICKET_END);
unlink(buf);
-/*
if(fork())
{
more(outcome,YEA);
unlockutmpmode();
return 0;
}
-*/
+ close(0);
+ close(1);
sprintf(buf, "[公告] %s 賭盤開獎", bh->brdname);
post_file(bh->brdname, buf, outcome, "[賭神]");
post_file("Record", buf+7, outcome, "[馬路探子]");
@@ -335,6 +335,7 @@ int openticket(int bid) {
unlink(buf);
setbfile(buf, bh->brdname, FN_TICKET_USER);
unlink(buf);
+ exit(1);
return 0;
}
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 90b39eab..51b318e5 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.69 2002/06/06 21:34:11 in2 Exp $ */
+/* $Id: talk.c,v 1.70 2002/06/07 17:19:47 ptt Exp $ */
#include "bbs.h"
#define QCAST int (*)(const void *, const void *)
@@ -2044,12 +2044,12 @@ static void userlist(void)
ans, sizeof(ans), LCECHO) &&
*ans == 'n')
break;
- if( HAS_PERM(PERM_SYSOP) ){
+ if( !(cuser.uflag & FRIEND_FLAG) && HAS_PERM(PERM_SYSOP) ){
for( i = 0 ; i < SHM->UTMPnumber && i<1000 ; ++i ){
uentp = SHM->sorted[SHM->currsorted][0][i];
if( uentp->pid && kill(uentp->pid, 0) != -1 )
my_write(uentp->pid, genbuf,
- uentp->userid, 1, NULL);
+ uentp->userid, 1, NULL);
}
}
else{