diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-20 20:57:23 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-20 20:57:23 +0800 |
commit | 81c98e60178549e9933961219d370252e91198cb (patch) | |
tree | 1b8d399ee196b1d1cdbd152ab261c0e598d20fc0 /include | |
parent | c909e6f54001e88ab3017d9e5ac49d60da6b00cd (diff) | |
download | pttbbs-81c98e60178549e9933961219d370252e91198cb.tar pttbbs-81c98e60178549e9933961219d370252e91198cb.tar.gz pttbbs-81c98e60178549e9933961219d370252e91198cb.tar.bz2 pttbbs-81c98e60178549e9933961219d370252e91198cb.tar.lz pttbbs-81c98e60178549e9933961219d370252e91198cb.tar.xz pttbbs-81c98e60178549e9933961219d370252e91198cb.tar.zst pttbbs-81c98e60178549e9933961219d370252e91198cb.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 7 | ||||
-rw-r--r-- | include/pttstruct.h | 2 |
2 files changed, 8 insertions, 1 deletions
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; |