diff options
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc-dcc.c | 2 | ||||
-rw-r--r-- | src/irc/irc.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c index 6cc21774f..07749f670 100644 --- a/src/irc/irc-dcc.c +++ b/src/irc/irc-dcc.c @@ -29,6 +29,7 @@ #include <string.h> #include <stdarg.h> #include <fcntl.h> +#include <time.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/socket.h> @@ -355,6 +356,7 @@ dcc_add (t_irc_server *server, int type, unsigned long addr, int port, char *nic new_dcc->channel = NULL; new_dcc->type = type; new_dcc->status = DCC_WAITING; + new_dcc->start_time = time (NULL); new_dcc->addr = addr; new_dcc->port = port; new_dcc->nick = strdup (nick); diff --git a/src/irc/irc.h b/src/irc/irc.h index 755bb874b..45c26daae 100644 --- a/src/irc/irc.h +++ b/src/irc/irc.h @@ -210,6 +210,7 @@ struct t_irc_dcc t_irc_channel *channel; /* irc channel (for DCC chat only) */ int type; /* DCC type (send or receive) */ int status; /* DCC status (waiting, sending, ..) */ + time_t start_time; /* the time when DCC started */ unsigned long addr; /* IP address */ int port; /* port */ char *nick; /* remote nick */ |