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