diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 11:23:44 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-23 11:23:44 +0800 |
commit | 6da8daa02f1563d8c0af993e377d2e98634cede5 (patch) | |
tree | a7b93e8a2958720abca5de899cf42a3fb70f2fa9 | |
parent | 9f968c8886542a57ef9a9c56730857252100acd7 (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/talk.c | 5 |
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; |