mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-25 16:48:10 -07:00
Show translator names in INFO
This commit is contained in:
+9
-1
@@ -2281,11 +2281,19 @@ func infoHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
|
||||
for _, line := range infoString2 {
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, line)
|
||||
}
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, "")
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, client.t("Contributors and Former Developers:"))
|
||||
for _, line := range infoString3 {
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, line)
|
||||
}
|
||||
// show translators for languages other than good ole' regular English
|
||||
tlines := server.languages.Translators()
|
||||
if 0 < len(tlines) {
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, client.t("Translators:"))
|
||||
for _, line := range tlines {
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, " "+line)
|
||||
}
|
||||
client.Send(nil, server.name, RPL_INFO, client.nick, "")
|
||||
}
|
||||
client.Send(nil, server.name, RPL_ENDOFINFO, client.nick, client.t("End of /INFO"))
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user