summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-30 17:30:54 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-30 17:30:54 +0000
commitc8706013f8c170dd5483658c7cdc7f84a69ea6de (patch)
treef0fbd7b8689443025887994a82fefd2b5ef0fa09 /src/core
parent87a8f713443283600bf9f66e1f8a73c54284ab3a (diff)
downloadirssi-c8706013f8c170dd5483658c7cdc7f84a69ea6de.zip
Moved some IRC specific server stuff to generic server stuff.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@551 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/server.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/server.h b/src/core/server.h
index 914059ba..25073379 100644
--- a/src/core/server.h
+++ b/src/core/server.h
@@ -18,6 +18,17 @@ typedef struct {
char *ircnet;
IPADDR *own_ip;
+
+ char *password;
+ char *nick;
+ char *username;
+ char *realname;
+
+ /* when reconnecting, the old server status */
+ int reconnection:1; /* we're trying to reconnect */
+ char *channels;
+ char *away_reason;
+ char *usermode;
} SERVER_CONNECT_REC;
typedef struct {
@@ -25,6 +36,7 @@ typedef struct {
SERVER_CONNECT_REC *connrec;
time_t connect_time; /* connection time */
+ time_t real_connect_time; /* time when server replied that we really are connected */
char *tag; /* tag name for addressing server */
char *nick; /* current nick */
@@ -48,6 +60,11 @@ typedef struct {
void *rawlog;
void *buffer; /* receive buffer */
GHashTable *module_data;
+
+ char *version; /* server version */
+ char *away_reason;
+ int usermode_away:1;
+ int banned:1; /* not allowed to connect to this server */
} SERVER_REC;
extern GSList *servers, *lookup_servers;