From 180ab31c09a9990a135b78fd6d52de5b093550f2 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 21 Aug 2010 20:34:17 +0100 Subject: Added some neat whatsnew code that keeps track of the newest version of BitlBee used by a user, and if it looks like s/he hasn't used this one before, show a list of new features that may be interesting. Since I don't think im.bitlbee.org users will read any changelogs ever, this is probably not a bad idea. If you hate it, the following command should get rid of it forever: set last_version 9999999 --- set.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'set.h') diff --git a/set.h b/set.h index 4bd1ce18..d5be7644 100644 --- a/set.h +++ b/set.h @@ -42,7 +42,11 @@ typedef char *(*set_eval) ( struct set *set, char *value ); extern char *SET_INVALID; -#define SET_NULL_OK 0x0100 +typedef enum +{ + SET_NULL_OK = 0x0100, + SET_HIDDEN = 0x0200, +} set_flags_t; typedef struct set { @@ -59,8 +63,7 @@ typedef struct set In fact, you should only read values using set_getstr/int(). */ - int flags; /* See account.h, for example. set.c doesn't use - this (yet?). */ + set_flags_t flags; /* Mostly defined per user. */ /* Eval: Returns SET_INVALID if the value is incorrect, exactly the passed value variable, or a corrected value. In case of -- cgit v1.2.3