mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 08:32:07 +02:00
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
This commit is contained in:
parent
95b94ed83c
commit
f354fe54c7
70 changed files with 381 additions and 438 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue