diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-08 02:57:31 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-08 02:57:31 +0800 |
commit | 9e0669abee6d8ec68a43c15866deeab754b2a81d (patch) | |
tree | e92e39982994cb8bc5990e13b22b055ad0d33eef /mbbsd/talk.c | |
parent | ce8d20f25bcfb6bf48bd2b3c60835427a03a37bf (diff) | |
download | pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar.gz pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar.bz2 pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar.lz pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar.xz pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.tar.zst pttbbs-9e0669abee6d8ec68a43c15866deeab754b2a81d.zip |
change broadcast default prompt from 'y' to 'n', patched by ledia.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2476 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 547d30cd..23bd72d1 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -2372,15 +2372,15 @@ userlist(void) if (!getdata(0, 0, "廣播訊息:", genbuf+6, 54, DOECHO)) break; - if (getdata(0, 0, "確定廣播? [Y]", + if (!getdata(0, 0, "確定廣播? [N]", ans, sizeof(ans), LCECHO) && - *ans == 'n') + ans[0] != 'y') break; if (!(cuser.uflag & FRIEND_FLAG) && HAS_PERM(PERM_SYSOP)) { msgque_t msg; getdata(1, 0, "再次確定站長廣播? [N]", ans, sizeof(ans), LCECHO); - if( *ans != 'y' && *ans != 'Y' ){ + if( ans[0] != 'y' && ans[0] != 'Y' ){ vmsg("abort"); break; } |