summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-19 18:37:27 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-19 18:37:27 +0100
commitf767fc29fb0c192d20308a09aaa18918ac8a0875 (patch)
tree0d207d9dfe0c6474bb2f707342a6fe10500144c6 /logging.h
parenta5880d645c2bbf8dfae6daabb1d3c3c66e3c310b (diff)
Enable logging of TOPIC changes.
Diffstat (limited to 'logging.h')
-rw-r--r--logging.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/logging.h b/logging.h
index 75e6553..012d239 100644
--- a/logging.h
+++ b/logging.h
@@ -18,6 +18,7 @@
#define SOURCE_CLIENT 1
#define LOG_PRIVMSG 0
#define LOG_JOINPART 1
+#define LOG_TOPIC 2
// Write the line 'str' to the relevant log file such as
// '#channel.log' or 'nickname.log'. 'ournick' is our own
@@ -29,11 +30,13 @@
// If LOG_PRIVMSG then it expects a string in the format:
// :from!bar@baz PRIVMSG to :hello world
//
-// If LOG_JOINPART then
-// Expects a string in the format:
-// :nick!bar@baz JOIN :#blabouncer
+// If LOG_JOINPART then it expects a string in the format:
+// :nick!bar@baz JOIN :#channel
// or
-// :nick!bar@baz PART #blabouncer
+// :nick!bar@baz PART #channel
+//
+// If LOG_TOPIC then it expects a string in the format:
+// :nick!bar@baz TOPIC #channel :bla bla bla
//
// With the ":foo!bar@baz "prefix being important for either
// type.