summaryrefslogtreecommitdiff
path: root/irc/states.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtzfr.eu>2020-08-22 15:03:12 +0200
committerHubert Hirtz <hubert@hirtzfr.eu>2020-08-22 15:03:12 +0200
commit40f3e347707adb928844654907afe494e83e9a4a (patch)
treeafe62865d768ff7ac6fe08a08b50fffafa347d37 /irc/states.go
parentFix same messages being fetched with CHATHISTORY (diff)
Fix /topic only accepting one word
Diffstat (limited to 'irc/states.go')
-rw-r--r--irc/states.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/irc/states.go b/irc/states.go
index 8837018..e68788a 100644
--- a/irc/states.go
+++ b/irc/states.go
@@ -303,7 +303,7 @@ func (s *Session) SetTopic(channel, topic string) {
}
func (s *Session) setTopic(act actionSetTopic) (err error) {
- err = s.send("TOPIC %s %s\r\n", act.Channel, act.Topic)
+ err = s.send("TOPIC %s :%s\r\n", act.Channel, act.Topic)
return
}