summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
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.
//