diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-26 15:39:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-26 15:39:44 +0000 |
commit | e395e87dedd9aa85f05e5c74330a76f1ef700371 (patch) | |
tree | 1184487b13038499f1771e4c553222f85b8524d2 /src/irc/core/irc.h | |
parent | 3d124da13b8da5c0b535abfe6265fc471d9d2ebd (diff) | |
download | irssi-e395e87dedd9aa85f05e5c74330a76f1ef700371.zip |
Lots of moving stuff around - hopefully I didn't break too much :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc.h')
-rw-r--r-- | src/irc/core/irc.h | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/src/irc/core/irc.h b/src/irc/core/irc.h index baa692df..12065cb1 100644 --- a/src/irc/core/irc.h +++ b/src/irc/core/irc.h @@ -1,8 +1,7 @@ #ifndef __IRC_H #define __IRC_H -#include "modules.h" -#include "irc-server.h" +#include "irc-servers.h" /* From ircd 2.9.5: none I line with ident @@ -26,46 +25,7 @@ (a) == '!' || /* secure */ \ (a) == '+') /* modeless */ -/* values returned by module_category() */ -enum { - WI_IRC_CHANNEL, - WI_IRC_QUERY -}; - -/* *MUST* have the same contents as WI_ITEM_REC in same order. */ -typedef struct { - int type; - GHashTable *module_data; - - IRC_SERVER_REC *server; - char *name; - - int new_data; - int last_color; -} WI_IRC_REC; - -/* return TRUE if `item' is an IRC type. */ -#define irc_item_check(item) \ - (item != NULL && module_find_id("IRC", ((WI_IRC_REC *) (item))->type) != -1) - -/* return `item' type, or -1 if it's not IRC type. */ -#define irc_item_get(item) \ - (item == NULL ? -1 : module_find_id("IRC", ((WI_IRC_REC *) (item))->type)) - -/* Return `item' if it's channel, NULL if it isn't. */ -#define irc_item_channel(item) \ - (item != NULL && module_find_id("IRC", ((WI_IRC_REC *) (item))->type) == WI_IRC_CHANNEL ? \ - (void *) (item) : NULL) - -/* Return `item' if it's query, NULL if it isn't. */ -#define irc_item_query(item) \ - (item != NULL && module_find_id("IRC", ((WI_IRC_REC *) (item))->type) == WI_IRC_QUERY ? \ - (void *) (item) : NULL) - -/* Return `item' if it's DCC chat, NULL if it isn't. */ -#define irc_item_dcc_chat(item) \ - (item != NULL && module_find_id("IRC", ((WI_IRC_REC *) (item))->type) == WI_IRC_DCC_CHAT ? \ - (void *) (item) : NULL) +#define IS_IRC_ITEM(rec) (IS_IRC_CHANNEL(rec) || IS_IRC_QUERY(rec)) extern char *current_server_event; /* current server event being processed */ |