diff options
-rw-r--r-- | mbbsd/angel.c | 1 | ||||
-rw-r--r-- | mbbsd/chat.c | 2 | ||||
-rw-r--r-- | mbbsd/voteboard.c | 6 |
3 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/angel.c b/mbbsd/angel.c index 360c85d0..f9c33617 100644 --- a/mbbsd/angel.c +++ b/mbbsd/angel.c @@ -219,6 +219,7 @@ t_angelmsg(){ inline int angel_reject_me(userinfo_t * uin){ + // TODO 超級好友怎麼辦? int* iter = uin->reject; int unum; while ((unum = *iter++)) { diff --git a/mbbsd/chat.c b/mbbsd/chat.c index 2a5343f8..82ac6e7f 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -143,8 +143,8 @@ chat_help(char *arg) chathelp("[/o]p <id>", "將 Op 的權力轉移給 <id>"); chathelp("[/t]opic <text>", "換個話題"); chathelp("[/w]all", "廣播 (站長專用)"); + chathelp(" /ban <id>", "拒絕 <id> 再次進入此談天室"); } else { - // chathelp("[/.]help", "chicken 鬥雞用指令"); chathelp(" /help op", "談天室管理員專用指令"); chathelp("[//]help", "MUD-like 社交動詞"); chathelp("[/a]ct <msg>", "做一個動作"); diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index 81018da2..29c7369a 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -107,7 +107,7 @@ do_voteboardreply(const fileheader_t * fhdr) space = strpbrk(genbuf+4, " \n"); if(space) *space='\0'; - if (!strncmp(genbuf + 4, cuser.userid, IDLEN)) { + if (!strncasecmp(genbuf + 4, cuser.userid, IDLEN)) { move(5, 10); outs("您已經連署過本篇了"); getdata(17, 0, "要修改您之前的連署嗎?(Y/N) [N]", opnion, 3, LCECHO); @@ -160,7 +160,7 @@ do_voteboardreply(const fileheader_t * fhdr) for(yes=0; fgets(genbuf, sizeof(genbuf), fi);) { if (!strncmp("----------", genbuf, 10)) break; - if (strlen(genbuf)<30 || (genbuf[4+len]==' ' && !strncmp(genbuf + 4, cuser.userid, len))) + if (strlen(genbuf)<30 || (genbuf[4+len]==' ' && !strncasecmp(genbuf + 4, cuser.userid, len))) continue; fprintf(fo, "%3d.%s", ++yes, genbuf + 4); } @@ -171,7 +171,7 @@ do_voteboardreply(const fileheader_t * fhdr) for(no=0; fgets(genbuf, sizeof(genbuf), fi);) { if (!strncmp("----------", genbuf, 10)) break; - if (strlen(genbuf)<30 || (genbuf[4+len]==' ' && !strncmp(genbuf + 4, cuser.userid, len))) + if (strlen(genbuf)<30 || (genbuf[4+len]==' ' && !strncasecmp(genbuf + 4, cuser.userid, len))) continue; fprintf(fo, "%3d.%s", ++no, genbuf + 4); } |