mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
Added chat protocol register. Changed all chat_type fields to use it.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@640 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
03091413ee
commit
28a7908e73
26 changed files with 259 additions and 62 deletions
|
|
@ -1,15 +1,16 @@
|
|||
#ifndef __IRC_SERVERS_H
|
||||
#define __IRC_SERVERS_H
|
||||
|
||||
#include "chat-protocols.h"
|
||||
#include "servers.h"
|
||||
|
||||
/* returns IRC_SERVER_REC if it's IRC server, NULL if it isn't */
|
||||
#define IRC_SERVER(server) \
|
||||
MODULE_CHECK_CAST(server, IRC_SERVER_REC, chat_type, "IRC SERVER")
|
||||
PROTO_CHECK_CAST(SERVER(server), IRC_SERVER_REC, chat_type, "IRC")
|
||||
|
||||
#define IRC_SERVER_CONNECT(conn) \
|
||||
MODULE_CHECK_CAST(conn, IRC_SERVER_CONNECT_REC, \
|
||||
chat_type, "IRC SERVER CONNECT")
|
||||
PROTO_CHECK_CAST(SERVER_CONNECT(conn), IRC_SERVER_CONNECT_REC, \
|
||||
chat_type, "IRC")
|
||||
|
||||
#define IS_IRC_SERVER(server) \
|
||||
(IRC_SERVER(server) ? TRUE : FALSE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue