mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
4c6237256f
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2206 dbcabf3a-b0e7-0310-adc4-f8d773084564
41 lines
1001 B
C
41 lines
1001 B
C
#ifndef __IRC_CHATNETS_H
|
|
#define __IRC_CHATNETS_H
|
|
|
|
#include "chat-protocols.h"
|
|
#include "chatnets.h"
|
|
|
|
/* returns IRC_CHATNET_REC if it's IRC network, NULL if it isn't */
|
|
#define IRC_CHATNET(chatnet) \
|
|
PROTO_CHECK_CAST(CHATNET(chatnet), IRC_CHATNET_REC, chat_type, "IRC")
|
|
|
|
#define IS_IRC_CHATNET(chatnet) \
|
|
(IRC_CHATNET(chatnet) ? TRUE : FALSE)
|
|
|
|
#define IS_IRCNET(ircnet) IS_IRC_CHATNET(ircnet)
|
|
#define IRCNET(ircnet) IRC_CHATNET(ircnet)
|
|
|
|
struct _IRC_CHATNET_REC {
|
|
#include "chatnet-rec.h"
|
|
|
|
char *usermode;
|
|
|
|
int max_cmds_at_once;
|
|
int cmd_queue_speed;
|
|
int max_query_chans; /* when syncing, max. number of channels to
|
|
put in one MODE/WHO command */
|
|
|
|
/* max. number of kicks/msgs/mode/whois per command */
|
|
int max_kicks, max_msgs, max_modes, max_whois;
|
|
};
|
|
|
|
void ircnet_create(IRC_CHATNET_REC *rec);
|
|
|
|
#define irc_chatnet_find(name) \
|
|
IRC_CHATNET(chatnet_find(name))
|
|
#define ircnet_find(name) irc_chatnet_find(name)
|
|
|
|
void irc_chatnets_init(void);
|
|
void irc_chatnets_deinit(void);
|
|
|
|
#endif
|