From 4bc35b3870807886f1019cf52ad8e91d150774ef Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 13 Oct 2005 15:22:21 +0000 Subject: changes mailalert to 1 bit only. reserved other 7 trigers for updating current status on the fly when user is online. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3223 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/pttstruct.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/pttstruct.h b/include/pttstruct.h index 3da51384..a8e9c568 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -330,6 +330,10 @@ typedef struct msgque_t { int msgmode; } msgque_t; +#define ALERT_NEW_MAIL 1 +#define ISNEWMAIL(utmp) utmp->alerts & ALERT_NEW_MAIL +#define ALERT_RELOAD_PASSWD 2 + /* user data in shm */ /* use GAP to detect and avoid data overflow and overriding */ typedef struct userinfo_t { @@ -374,7 +378,7 @@ typedef struct userinfo_t { unsigned char mode; /* UL/DL, Talk Mode, Chat Mode, ... */ unsigned char pager; /* pager toggle, YEA, or NA */ time4_t lastact; /* 上次使用者動的時間 */ - char mailalert; + char alerts; /* mail alert, passwd update... */ char mind[4]; /* chatroom/talk/games calling */ -- cgit v1.2.3