diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-30 22:29:55 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-30 22:29:55 +0000 |
commit | b4bdec4436190d7ccb6252be388b5ee70c5c36f5 (patch) | |
tree | 5b80eb0eab42f347575c05dbff3361f9955cd6ee /src/irc/core/irc-servers-setup.h | |
parent | cf7eb945ea769b51622a1c1cbbbc7e7a6a494df9 (diff) | |
download | irssi-b4bdec4436190d7ccb6252be388b5ee70c5c36f5.zip |
Object type checking fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@638 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers-setup.h')
-rw-r--r-- | src/irc/core/irc-servers-setup.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/irc/core/irc-servers-setup.h b/src/irc/core/irc-servers-setup.h index f29f55c0..818611fe 100644 --- a/src/irc/core/irc-servers-setup.h +++ b/src/irc/core/irc-servers-setup.h @@ -1,13 +1,13 @@ #ifndef __IRC_SERVERS_SETUP_H #define __IRC_SERVERS_SETUP_H -#define IS_IRC_SERVER_SETUP(server) \ - ((server) != NULL && \ - module_find_id("IRC SERVER SETUP", (server)->chat_type) != -1) #define IRC_SERVER_SETUP(server) \ - (IS_IRC_SERVER_SETUP(server) ? \ - (IRC_SERVER_SETUP_REC *) (server) : NULL) + MODULE_CHECK_CAST(server, IRC_SERVER_SETUP_REC, \ + chat_type, "IRC SERVER SETUP") + +#define IS_IRC_SERVER_SETUP(server) \ + (IRC_SERVER_SETUP(server) ? TRUE : FALSE) typedef struct { #include "server-setup-rec.h" |