diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-01 17:07:32 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-01 17:07:32 +0000 |
commit | 7a255bf83930a317914c07e1ac37f2ca47072042 (patch) | |
tree | b17ed2b2a4bc12bc8d934a1b9a953b4598a421e7 | |
parent | 1b297770a0c50b256e1a65039710196dad8d55eb (diff) | |
download | irssi-7a255bf83930a317914c07e1ac37f2ca47072042.zip |
forgot these from /MOTD fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@260 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/irc/core/irc-server.c | 1 | ||||
-rw-r--r-- | src/irc/core/irc-server.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/core/irc-server.c b/src/irc/core/irc-server.c index 4e3ecfd1..417beb38 100644 --- a/src/irc/core/irc-server.c +++ b/src/irc/core/irc-server.c @@ -372,6 +372,7 @@ static void event_connected(const char *data, IRC_SERVER_REC *server, const char /* last welcome message found - commands can be sent to server now. */ server->connected = 1; + server->real_connect_time = time(NULL); if (!server->connrec->reconnection) { /* wait a second and then send the user mode */ diff --git a/src/irc/core/irc-server.h b/src/irc/core/irc-server.h index 8d780e30..e3f7d960 100644 --- a/src/irc/core/irc-server.h +++ b/src/irc/core/irc-server.h @@ -75,6 +75,8 @@ typedef struct { GHashTable *module_data; /* -- IRC specific - change if you wish -- */ + time_t real_connect_time; /* time when we received 001-event. */ + char *real_address; /* address the irc server gives */ char *version; /* server version - taken from 004 event */ char *usermode; /* The whole mode string .. */ |