summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-24 09:02:40 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-24 09:02:40 +0800
commit4be09ad0c2da18d07459b7067e40c5f7f61f9aca (patch)
treeb6be08079160d6d3d2c00c5252a2b36a93124844 /util
parent0d1688520003011abbcb9c37074f2c2dce88f72a (diff)
downloadpttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar.gz
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar.bz2
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar.lz
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar.xz
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.tar.zst
pttbbs-4be09ad0c2da18d07459b7067e40c5f7f61f9aca.zip
Make convert work without PLAY_ANGEL defined.victor.screen@2015
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2015 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/r2014convert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/r2014convert.c b/util/r2014convert.c
index 7609cee4..317a4623 100644
--- a/util/r2014convert.c
+++ b/util/r2014convert.c
@@ -12,7 +12,7 @@ int main(){
printf("It seems your .PASSWD file has been transfered, "
"do it any way?[y/N] ");
fflush(stdout);
- scanf(" %c", &c);
+ scanf("%c", &c);
if (c != 'y' && c != 'Y')
return 0;
} else {
@@ -41,10 +41,10 @@ int main(){
while(read(orig_fd, &u, sizeof(userec_t)) == sizeof(userec_t)){
// clear 0x400, 0x800, and 0x3000
- u.uflag2 &= ~(REJ_OUTTAMAIL | REJ_QUESTION | ANGEL_MASK);
+ u.uflag2 &= ~(0x400 | 0x800 | 0x3000);
if( u.userlevel & OLD_PERM_NOOUTMAIL )
u.uflag2 |= REJ_OUTTAMAIL;
- u.userlevel &= ~PERM_ANGEL;
+ u.userlevel &= ~000001000000;
bzero(u.myangel, IDLEN + 1);
write(new_fd, &u, sizeof(userec_t));
++count;