1
0
mirror of https://github.com/irssi/irssi.git synced 2025-01-03 14:56:47 -05:00
irssi/src/irc/core/irc-queries.h
Timo Sirainen f354fe54c7 Moved some stuff from irc to core. Added command_bind_proto() function to
bind protocol-specific commands. Added #define command_bind_irc() for easier
access. CMD_IRC_SERVER(server) check should be done at the beginning of each
command requiring IRC server as active server, it handles it correctly the
cases when it is not. Did some other cleanups as well.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1955 dbcabf3a-b0e7-0310-adc4-f8d773084564
2001-11-02 01:05:14 +00:00

24 lines
555 B
C

#ifndef __IRC_QUERIES_H
#define __IRC_QUERIES_H
#include "chat-protocols.h"
#include "queries.h"
/* Returns IRC_QUERY_REC if it's IRC query, NULL if it isn't. */
#define IRC_QUERY(query) \
PROTO_CHECK_CAST(QUERY(query), QUERY_REC, chat_type, "IRC")
#define IS_IRC_QUERY(query) \
(IRC_QUERY(query) ? TRUE : FALSE)
void irc_queries_init(void);
void irc_queries_deinit(void);
#define irc_query_find(server, name) \
query_find(SERVER(server), name)
QUERY_REC *irc_query_create(const char *server_tag,
const char *nick, int automatic);
#endif