summaryrefslogtreecommitdiff
path: root/irc/events.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2020-10-19 14:19:23 +0200
committerHubert Hirtz <hubert@hirtz.pm>2020-10-19 14:19:23 +0200
commit8fb22a1c588e41ac6b83b403d3eedda5c0f57869 (patch)
treefbc4aee795f37607c4935519ac643a73a733c0b2 /irc/events.go
parentEnsure timestamps from msg.TimeOrNow() are always UTC (diff)
Show topic changes
Closes #34
Diffstat (limited to '')
-rw-r--r--irc/events.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/irc/events.go b/irc/events.go
index 62622b4..9bb4c79 100644
--- a/irc/events.go
+++ b/irc/events.go
@@ -51,6 +51,13 @@ type UserQuitEvent struct {
Time time.Time
}
+type TopicChangeEvent struct {
+ User *Prefix
+ Channel string
+ Topic string
+ Time time.Time
+}
+
type MessageEvent struct {
User *Prefix
Target string