summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-15 15:11:55 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-15 15:11:55 +0100
commitaab7a7000cff14afe4cb331721ad55dc139f80c7 (patch)
treec6b5d7a9dd4d39fdc6dba08005267a209a3ec154 /logging.h
parente9d4ad3c33b81ff56c4e4b2cac4aad559a303104 (diff)
Log nick changes to the normal log file(s).
Diffstat (limited to 'logging.h')
-rw-r--r--logging.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/logging.h b/logging.h
index 726a490..c2b6d4f 100644
--- a/logging.h
+++ b/logging.h
@@ -38,6 +38,7 @@
#define LOG_TOPIC 2
#define LOG_NETWORK 3
#define LOG_QUIT 4
+#define LOG_NICK 5
#define DEBUG_CRIT 0
#define DEBUG_SOME 1
#define DEBUG_FULL 2
@@ -73,6 +74,10 @@
// channel log file. The caller probably has to call logline()
// multiple times for each channel the nick was in.
//
+// If LOG_NICK then it expects a string in the format:
+// channelname :oldnick!bar@baz NICK :newnick
+// Same manual 'channelname' prepending as LOG_QUIT above.
+//
// With the ":foo!bar@baz "prefix being important for all
// types.
//