1
0
Fork 0
forked from External/ergo

clean up some old getters

This commit is contained in:
Shivaram Lingamneni 2019-05-22 19:07:12 -04:00
parent 05459012ef
commit 4b88a60ba6
9 changed files with 16 additions and 30 deletions

View file

@ -908,7 +908,7 @@ func (channel *Channel) SetTopic(client *Client, topic string, rb *ResponseBuffe
return
}
topicLimit := client.server.Limits().TopicLen
topicLimit := client.server.Config().Limits.TopicLen
if len(topic) > topicLimit {
topic = topic[:topicLimit]
}
@ -1137,7 +1137,7 @@ func (channel *Channel) Kick(client *Client, target *Client, comment string, rb
return
}
kicklimit := client.server.Limits().KickLen
kicklimit := client.server.Config().Limits.KickLen
if len(comment) > kicklimit {
comment = comment[:kicklimit]
}