diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-11 10:49:18 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-11 10:49:18 +0800 |
commit | 7b4cccf5d7698666fb7938530b288be9d8e9629a (patch) | |
tree | 2c99b1a4d7d3ddf08d126d33642b1978aa0cef75 /mbbsd/user.c | |
parent | 8f0e3aafc25fef2181eafebdf8fdd01edc143338 (diff) | |
download | pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar.gz pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar.bz2 pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar.lz pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar.xz pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.tar.zst pttbbs-7b4cccf5d7698666fb7938530b288be9d8e9629a.zip |
- register: drop some rejected words which are valid in some addresses
- user: support 80 column in signature preview
- admin: log admin/sys(etc)edit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 7e71c414..26ef7588 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1222,13 +1222,18 @@ showsignature(char *fname, int *j, SigInfo *si) si->max = ch - '1'; if(lines > 0 && si->max >= si->show_start) { + int y = vgety() + 1; prints(ANSI_COLOR(36) "¡i ñ¦WÀÉ.%c ¡j" ANSI_RESET "\n", ch); lines--; if(lines > MAX_SIGLINES/2) si->show_max = si->max; for (i = 0; lines > 0 && i < MAX_SIGLINES && fgets(buf, sizeof(buf), fp) != NULL; i++) - outs(buf), lines--; + { + chomp(buf); + mvouts(y++, 0, buf); + lines--; + } } fclose(fp); } |