diff options
Diffstat (limited to 'src/irc')
-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 .. */ |