diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:18:39 +0000 |
commit | fff5217f02d91268ce90c8c05665602c059faaef (patch) | |
tree | 2ba24d32dc96eafe7ed0a85269548e76796d849d /src/irc/notifylist/module.h | |
parent | Initial commit. (diff) | |
download | irssi-upstream.tar.xz irssi-upstream.zip |
Adding upstream version 1.4.5.upstream/1.4.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/irc/notifylist/module.h')
-rw-r--r-- | src/irc/notifylist/module.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/irc/notifylist/module.h b/src/irc/notifylist/module.h new file mode 100644 index 0000000..f109aff --- /dev/null +++ b/src/irc/notifylist/module.h @@ -0,0 +1,42 @@ +#include <irssi/src/common.h> +#include <irssi/src/irc/core/irc.h> + +#define MODULE_NAME "irc/notifylist" + +typedef struct { + char *nick; + char *user, *host, *realname, *awaymsg; + + unsigned int host_ok:1; /* host matches the one in notifylist = this is the right person*/ + unsigned int away_ok:1; /* not away, or we don't care about it */ + + unsigned int away:1; /* nick is away */ + unsigned int join_announced:1; /* join to IRC has been announced */ + + time_t last_whois; +} NOTIFY_NICK_REC; + +typedef struct { + int ison_count; /* number of ISON requests sent */ + + GSList *notify_users; /* NOTIFY_NICK_REC's of notifylist people who are in IRC */ + GSList *ison_tempusers; /* Temporary list for saving /ISON events.. */ +} MODULE_SERVER_REC; + +#include <irssi/src/irc/core/irc-servers.h> + +NOTIFY_NICK_REC *notify_nick_create(IRC_SERVER_REC *server, const char *nick); +void notify_nick_destroy(NOTIFY_NICK_REC *rec); +NOTIFY_NICK_REC *notify_nick_find(IRC_SERVER_REC *server, const char *nick); + +void notifylist_left(IRC_SERVER_REC *server, NOTIFY_NICK_REC *rec); +void notifylist_destroy_all(void); + +void notifylist_commands_init(void); +void notifylist_commands_deinit(void); + +void notifylist_whois_init(void); +void notifylist_whois_deinit(void); + +void notifylist_ison_init(void); +void notifylist_ison_deinit(void); |