diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-09-15 14:47:44 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-09-15 14:47:44 +0100 |
commit | e9d4ad3c33b81ff56c4e4b2cac4aad559a303104 (patch) | |
tree | c177baee475291dc1545f48c942560351aa92e4f /logging.h | |
parent | 4dea4c16313ba3d1575cfa6722d75492c907f551 (diff) |
Start tracking nicks in channels (upon JOIN/PART/QUIT/NICK) and use that to correctly log QUITs in the replay log and normal log(s).
Diffstat (limited to 'logging.h')
-rw-r--r-- | logging.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -37,6 +37,7 @@ #define LOG_JOINPART 1 #define LOG_TOPIC 2 #define LOG_NETWORK 3 +#define LOG_QUIT 4 #define DEBUG_CRIT 0 #define DEBUG_SOME 1 #define DEBUG_FULL 2 @@ -64,6 +65,14 @@ // If LOG_NETWORK then it just logs the string verbatim in // a file named 'ircdstate->ircdname'.log. // +// If LOG_QUIT then it expects a string in the format: +// channelname :nick!bar@baz QUIT :bla bla bla +// 'channelname' probably has to be prepended manually by the +// caller since it doesn't feature in the raw message from +// the IRCd. We need it in logline() to log to the relevant +// channel log file. The caller probably has to call logline() +// multiple times for each channel the nick was in. +// // With the ":foo!bar@baz "prefix being important for all // types. // |