summaryrefslogtreecommitdiffstats
path: root/common/bbs
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-29 17:11:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-29 17:11:21 +0800
commitaa420a10ffe8e81567c16b780acb32962851053e (patch)
tree5bf7db3381e49ab85f6886bd3dfeb853bfc0bccb /common/bbs
parentdae5bcd0ce2aa49b654f76fcc6038667d40511bc (diff)
downloadpttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.gz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.bz2
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.lz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.xz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.zst
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.zip
- (experimental) mask ip(fromhost): USE_MASKED_FROMHOST
- board: make 'w' (save_brc) more user friendly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4039 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'common/bbs')
-rw-r--r--common/bbs/Makefile1
-rw-r--r--common/bbs/string.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/common/bbs/Makefile b/common/bbs/Makefile
index ce53c79a..e3aae6e0 100644
--- a/common/bbs/Makefile
+++ b/common/bbs/Makefile
@@ -5,6 +5,7 @@ SRCROOT= ../..
CFLAGS+= -I$(SRCROOT)/include
OBJS= log.o file.o money.o names.o path.o string.o
+# record.o
TARGET= libcmbbs.a
diff --git a/common/bbs/string.c b/common/bbs/string.c
index 8b137891..60b03b37 100644
--- a/common/bbs/string.c
+++ b/common/bbs/string.c
@@ -1 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "cmbbs.h"
+void obfuscate_ipstr(char *s)
+{
+ s = strrchr(s, '.');
+ if (!s) return;
+ if (!*++s) return;
+ // s points to a.'b'
+ *s++ = '*';
+ *s = 0;
+}