diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-01 18:09:54 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-01 18:09:54 +0300 |
| commit | f47f9d10f8aa3ace1f2d93d0aa6ab090f782328b (patch) | |
| tree | 44e49c0f2a98e6ba90d7ec79591e51bfd7719a93 /ircd.h | |
| parent | 62869d341d2a4e959b60865076287701694859dd (diff) | |
| download | libreircd-f47f9d10f8aa3ace1f2d93d0aa6ab090f782328b.tar.gz libreircd-f47f9d10f8aa3ace1f2d93d0aa6ab090f782328b.zip | |
Add ping system
Now users will be kicked for inactivity o.o
Diffstat (limited to 'ircd.h')
| -rw-r--r-- | ircd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ircd.h b/ircd.h index ef8dbc5..fcc6ddc 100644 --- a/ircd.h +++ b/ircd.h @@ -18,6 +18,7 @@ #define __IRCD_H__ #include <stddef.h> +#include <time.h> #include "config.h" @@ -55,6 +56,7 @@ struct Peer } modes; char buf[MESSAGE_MAX]; size_t recvd, channels_c; + time_t last, ping; }; struct Channel |