summaryrefslogtreecommitdiff
path: root/src/irc/core/irc.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-02 01:05:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-02 01:05:14 +0000
commitf354fe54c71485516b76fdd149891191993f60b5 (patch)
tree1231e8f5e1126c4fa9544a9ce40ce54ace6e05d1 /src/irc/core/irc.h
parent95b94ed83c1372fae4eb14bf8109847bdc65a8d2 (diff)
downloadirssi-f354fe54c71485516b76fdd149891191993f60b5.zip
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
Diffstat (limited to 'src/irc/core/irc.h')
-rw-r--r--src/irc/core/irc.h6
1 files changed, 5 insertions, 1 deletions
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 */