summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-15 14:47:44 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-15 14:47:44 +0100
commite9d4ad3c33b81ff56c4e4b2cac4aad559a303104 (patch)
treec177baee475291dc1545f48c942560351aa92e4f /logging.h
parent4dea4c16313ba3d1575cfa6722d75492c907f551 (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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/logging.h b/logging.h
index 6371f8a..726a490 100644
--- a/logging.h
+++ b/logging.h
@@ -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.
//