summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-13 23:22:21 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-13 23:22:21 +0800
commit4bc35b3870807886f1019cf52ad8e91d150774ef (patch)
tree72d8a05b274b439c175486d086e0ceeb3f811c34 /util
parenta3b209f669a99367136225cf890487df69dfabe0 (diff)
downloadpttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.gz
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.bz2
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.lz
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.xz
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.tar.zst
pttbbs-4bc35b3870807886f1019cf52ad8e91d150774ef.zip
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
Diffstat (limited to 'util')
-rw-r--r--util/angel.c2
-rw-r--r--util/bbsmail.c2
-rw-r--r--util/chkhbf.c3
-rw-r--r--util/mailangel.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/util/angel.c b/util/angel.c
index 9e1f3880..e434a46b 100644
--- a/util/angel.c
+++ b/util/angel.c
@@ -107,7 +107,7 @@ int mailalertuser(char* userid)
{
userinfo_t *uentp=NULL;
if (userid[0] && (uentp = search_ulist_userid(userid)))
- uentp->mailalert=1;
+ uentp->alerts|=ALERT_NEW_MAIL;
return 0;
}
diff --git a/util/bbsmail.c b/util/bbsmail.c
index 06b9fefe..4cc441f2 100644
--- a/util/bbsmail.c
+++ b/util/bbsmail.c
@@ -47,7 +47,7 @@ int mailalertuid(int tuid)
{
userinfo_t *uentp=NULL;
if(tuid>0 && (uentp = (userinfo_t *)search_ulist(tuid)) )
- uentp->mailalert=1;
+ uentp->alerts|=ALERT_NEW_MAIL;
return 0;
}
diff --git a/util/chkhbf.c b/util/chkhbf.c
index 3203a3d0..90c28d56 100644
--- a/util/chkhbf.c
+++ b/util/chkhbf.c
@@ -1,4 +1,5 @@
/* $Id$ */
+#define _UTIL_C_
#include "bbs.h"
struct {
@@ -16,7 +17,7 @@ int mailalertuid(int tuid)
{
userinfo_t *uentp=NULL;
if(tuid>0 && (uentp = (userinfo_t *)search_ulist(tuid)) )
- uentp->mailalert=1;
+ uentp->alerts |=ALERT_NEW_MAIL;
return 0;
}
diff --git a/util/mailangel.c b/util/mailangel.c
index f873188c..93d9524b 100644
--- a/util/mailangel.c
+++ b/util/mailangel.c
@@ -46,7 +46,7 @@ int mailalertuser(char* userid)
{
userinfo_t *uentp=NULL;
if (userid[0] && (uentp = search_ulist_userid(userid)))
- uentp->mailalert=1;
+ uentp->alerts|=ALERT_NEW_MAIL;
return 0;
}