From f354fe54c71485516b76fdd149891191993f60b5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 2 Nov 2001 01:05:14 +0000 Subject: 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 --- src/irc/core/irc-servers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/irc/core/irc-servers.h') diff --git a/src/irc/core/irc-servers.h b/src/irc/core/irc-servers.h index 9a4f0ea8..1add7cdd 100644 --- a/src/irc/core/irc-servers.h +++ b/src/irc/core/irc-servers.h @@ -20,7 +20,7 @@ /* all strings should be either NULL or dynamically allocated */ /* address and nick are mandatory, rest are optional */ -typedef struct { +struct _IRC_SERVER_CONNECT_REC { #include "server-connect-rec.h" char *usermode; @@ -31,10 +31,10 @@ typedef struct { int max_query_chans; int max_kicks, max_msgs, max_modes, max_whois; -} IRC_SERVER_CONNECT_REC; +}; #define STRUCT_SERVER_CONNECT_REC IRC_SERVER_CONNECT_REC -typedef struct { +struct _IRC_SERVER_REC { #include "server-rec.h" char *real_address; /* address the irc server gives */ @@ -87,7 +87,7 @@ typedef struct { channels go here if they're "temporarily unavailable" because of netsplits */ void *chanqueries; -} IRC_SERVER_REC; +}; IRC_SERVER_REC *irc_server_connect(IRC_SERVER_CONNECT_REC *conn); -- cgit v1.2.3