commit 40f3e34
Hubert Hirtz
·
2020-08-22 13:03:12 +0000 UTC
parent 7e1cdf8
Fix /topic only accepting one word
1 files changed,
+1,
-1
+1,
-1
1@@ -303,7 +303,7 @@ func (s *Session) SetTopic(channel, topic string) {
2 }
3
4 func (s *Session) setTopic(act actionSetTopic) (err error) {
5- err = s.send("TOPIC %s %s\r\n", act.Channel, act.Topic)
6+ err = s.send("TOPIC %s :%s\r\n", act.Channel, act.Topic)
7 return
8 }
9