summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-23 11:23:44 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-23 11:23:44 +0800
commit6da8daa02f1563d8c0af993e377d2e98634cede5 (patch)
treea7b93e8a2958720abca5de899cf42a3fb70f2fa9 /mbbsd
parent9f968c8886542a57ef9a9c56730857252100acd7 (diff)
downloadpttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar.gz
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar.bz2
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar.lz
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar.xz
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.tar.zst
pttbbs-6da8daa02f1563d8c0af993e377d2e98634cede5.zip
debug of seg fault on userlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1822 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/talk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 3ad7e731..4412470d 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -58,7 +58,7 @@ iswritable_stat(userinfo_t * uentp, int fri_stat)
int
isvisible_stat(userinfo_t * me, userinfo_t * uentp, int fri_stat)
{
- if (uentp->userid[0] == 0)
+ if (!uentp || uentp->userid[0] == 0)
return 0;
if (PERM_HIDE(uentp) && !(PERM_HIDE(me))) /* 對方紫色隱形而你沒有 */
@@ -1857,7 +1857,6 @@ pressanykey();
);
refresh();
-pressanykey();
}
}
@@ -1968,7 +1967,7 @@ userlist(void)
case 'H':
if (HAS_PERM(PERM_SYSOP)) {
- currutmp->userlevel ^= PERM_DENYPOST;
+ currutmp->userlevel ^= PERM_SYSOPHIDE;
redrawall = redraw = 1;
}
break;