From f354fe54c71485516b76fdd149891191993f60b5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 2 Nov 2001 01:05:14 +0000 Subject: 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 --- src/irc/core/irc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/irc/core/irc.h') diff --git a/src/irc/core/irc.h b/src/irc/core/irc.h index 46051d9e..3ff3e249 100644 --- a/src/irc/core/irc.h +++ b/src/irc/core/irc.h @@ -1,7 +1,10 @@ #ifndef __IRC_H #define __IRC_H -#include "irc-servers.h" +typedef struct _IRC_CHATNET_REC IRC_CHATNET_REC; +typedef struct _IRC_SERVER_CONNECT_REC IRC_SERVER_CONNECT_REC; +typedef struct _IRC_SERVER_REC IRC_SERVER_REC; +typedef struct _IRC_CHANNEL_REC IRC_CHANNEL_REC; /* From ircd 2.9.5: none I line with ident @@ -26,6 +29,7 @@ (a) == '+') /* modeless */ #define IS_IRC_ITEM(rec) (IS_IRC_CHANNEL(rec) || IS_IRC_QUERY(rec)) +#define IRC_PROTOCOL (chat_protocol_lookup("IRC")) extern char *current_server_event; /* current server event being processed */ -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0