summaryrefslogtreecommitdiff
path: root/irc/states.go
diff options
context:
space:
mode:
Diffstat (limited to 'irc/states.go')
-rw-r--r--irc/states.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/irc/states.go b/irc/states.go
index e560bdf..5502dd0 100644
--- a/irc/states.go
+++ b/irc/states.go
@@ -780,6 +780,12 @@ func (s *Session) handle(msg Message) (err error) {
c.TopicWho = msg.Prefix.Copy()
c.TopicTime = msg.TimeOrNow()
s.channels[channelCf] = c
+ s.evts <- TopicChangeEvent{
+ User: msg.Prefix.Copy(),
+ Channel: c.Name,
+ Topic: c.Topic,
+ Time: c.TopicTime,
+ }
}
case "PRIVMSG", "NOTICE":
s.evts <- s.privmsgToEvent(msg)