diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-06 01:07:21 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-06 01:07:21 +0000 |
commit | a99e93ef5d8dd4002580532ee25316c3860c1e4a (patch) | |
tree | 4be2a82c3f853c821ffe7f157acba7e03eec7de1 /src/core/nicklist.h | |
parent | 809fa17d824c6cf297e6c462fe0b5f904c076d4a (diff) | |
download | irssi-a99e93ef5d8dd4002580532ee25316c3860c1e4a.zip |
NICK_REC can be now inherited
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@971 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/nicklist.h')
-rw-r--r-- | src/core/nicklist.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/core/nicklist.h b/src/core/nicklist.h index 3f7a272b..90cdece6 100644 --- a/src/core/nicklist.h +++ b/src/core/nicklist.h @@ -4,23 +4,15 @@ #include "servers.h" #include "channels.h" +/* Returns NICK_REC if it's nick, NULL if it isn't. */ +#define NICK(server) \ + MODULE_CHECK_CAST(server, NICK_REC, type, "NICK") + +#define IS_NICK(server) \ + (NICK(server) ? TRUE : FALSE) + typedef struct { - time_t last_check; /* last time gone was checked */ - - char *nick; - char *host; - char *realname; - int hops; - - /* status in server */ - unsigned int gone:1; - unsigned int serverop:1; - - /* status in channel */ - unsigned int send_massjoin:1; /* Waiting to be sent in massjoin signal */ - unsigned int op:1; - unsigned int halfop:1; - unsigned int voice:1; +#include "nick-rec.h" } NICK_REC; /* Add new nick to list */ |