summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-04 21:08:35 +0800
commit9e81baf8352b3d525c9a1459f28dae6b540988e3 (patch)
treea558e73187b9d45b59280a79c927e7f8bb315623 /mbbsd/friend.c
parente42291049072cfee02408394850b33b3580dbd83 (diff)
downloadpttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.gz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.bz2
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.lz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.xz
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.tar.zst
pttbbs-9e81baf8352b3d525c9a1459f28dae6b540988e3.zip
global variable move to var.c
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@280 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c38
1 files changed, 2 insertions, 36 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index bac0674e..d772ad8c 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -1,26 +1,5 @@
-/* $Id: friend.c,v 1.5 2002/04/28 19:35:29 in2 Exp $ */
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/file.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "perm.h"
-#include "proto.h"
-#include "modes.h"
-
-extern userec_t cuser;
-extern int currmode;
-extern char currboard[]; /* name of currently selected board */
-extern char *fn_overrides;
-extern userinfo_t *currutmp;
-extern char *fn_reject;
-extern int usernum;
-extern char *str_space;
-extern char *msg_uid;
+/* $Id: friend.c,v 1.6 2002/06/04 13:08:33 in2 Exp $ */
+#include "bbs.h"
/* ------------------------------------- */
/* 特別名單 */
@@ -43,17 +22,6 @@ static unsigned int friend_max[8] = {
};
/* 雖然好友跟壞人名單都是 * 2 但是一次最多load到shm只能有128 */
-/* Ptt 各種特別名單的檔名 */
-char *friend_file[8] = {
- FN_OVERRIDES,
- FN_REJECT,
- "alohaed",
- "postlist",
- "",
- FN_CANVOTE,
- FN_WATER,
- FN_VISABLE
-};
/* Ptt 各種特別名單的補述 */
static char *friend_desc[8] = {
@@ -324,8 +292,6 @@ void friend_load() {
login_friend_online();
}
-extern userec_t cuser;
-
static void friend_water(char *message, int type) { /* 群體水球 added by Ptt */
char fpath[80], line[80], userid[IDLEN + 1];
FILE *fp;