summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-servers.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-01-20 10:57:57 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-01-20 10:57:57 +0000
commit217283caeaf5fc19e671a56547610ceb42e2ea7b (patch)
tree7f2fa9d29fdd2d9bb9f7782f1c928a53cebe70d2 /src/irc/core/irc-servers.h
parent3ccbd0405b8d3185a143c150a5b42070403fdc36 (diff)
downloadirssi-217283caeaf5fc19e671a56547610ceb42e2ea7b.zip
isupport patch by David Leadbeater
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/irc-servers.h')
-rw-r--r--src/irc/core/irc-servers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h
index 1286a15e..c1d1d9f0 100644
--- a/src/irc/core/irc-servers.h
+++ b/src/irc/core/irc-servers.h
@@ -3,6 +3,7 @@
#include "chat-protocols.h"
#include "servers.h"
+#include "modes.h"
/* returns IRC_SERVER_REC if it's IRC server, NULL if it isn't */
#define IRC_SERVER(server) \
@@ -61,6 +62,7 @@ struct _IRC_SERVER_REC {
unsigned int disable_lag:1; /* Disable lag detection (PING command doesn't exist) */
unsigned int nick_collision:1; /* We're just now being killed because of nick collision */
unsigned int motd_got:1; /* We've received MOTD */
+ unsigned int isupport_sent:1; /* Server has sent us an isupport reply */
int max_kicks_in_cmd; /* max. number of people to kick with one /KICK command */
int max_modes_in_cmd; /* max. number of mode changes in one /MODE command */
@@ -96,6 +98,12 @@ struct _IRC_SERVER_REC {
channels go here if they're "temporarily unavailable"
because of netsplits */
void *chanqueries;
+
+ GHashTable *isupport;
+ struct modes_type modes[256]; /* Stores the modes sent by a server in an isupport reply */
+ char prefix[256];
+
+ int (*nick_comp_func)(const char *, const char *); /* Function for comparing nicknames on this server */
};
SERVER_REC *irc_server_init_connect(SERVER_CONNECT_REC *conn);