From 81c98e60178549e9933961219d370252e91198cb Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 20 Sep 2004 12:57:23 +0000 Subject: fix bug: when deleting an user, the aloha record won't be deleted. add file: file.c, move some useful subroutine out of friend.c git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2205 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 7 +++++++ include/pttstruct.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index 6c42c241..187f4c90 100644 --- a/include/proto.h +++ b/include/proto.h @@ -239,6 +239,12 @@ fav_t *get_fav_root(void); void updatenewfav(int mode); void subscribe_newfav(void); +/* file */ +int file_count_line(char *file); +int file_append_line(char *file, char *string); +int file_delete_line(char *file, char *string); +int file_exist_record(char *file, char *string); + /* friend */ void friend_edit(int type); void friend_load(int); @@ -246,6 +252,7 @@ int t_override(void); int t_reject(void); void friend_add(char *uident, int type, char *des); void friend_delete(char *uident, int type); +void friend_delete_all(char *uident, int type); void friend_special(void); void setfriendfile(char *fpath, int type); diff --git a/include/pttstruct.h b/include/pttstruct.h index 8f00de01..135967ee 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -80,7 +80,7 @@ typedef struct userec_t { chicken_t mychicken; time_t lastsong; unsigned int loginview; - unsigned char channel; /* °ÊºA¬ÝªO */ + unsigned char channel; /* °ÊºA¬ÝªO (unused?) */ unsigned short vl_count; /* ViolateLaw counter */ unsigned short five_win; unsigned short five_lose; -- cgit v1.2.3