Преглед изворни кода

fix #1928

LIST should not return ERR_NOSUCHCHANNEL for nonexistent channels
tags/v2.10.0-rc1
Shivaram Lingamneni пре 2 година
родитељ
комит
2fb8b836db
1 измењених фајлова са 0 додато и 3 уклоњено
  1. 0
    3
      irc/handlers.go

+ 0
- 3
irc/handlers.go Прегледај датотеку

1699
 		for _, chname := range channels {
1699
 		for _, chname := range channels {
1700
 			channel := server.channels.Get(chname)
1700
 			channel := server.channels.Get(chname)
1701
 			if channel == nil || (!clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client)) {
1701
 			if channel == nil || (!clientIsOp && channel.flags.HasMode(modes.Secret) && !channel.hasClient(client)) {
1702
-				if len(chname) > 0 {
1703
-					rb.Add(nil, server.name, ERR_NOSUCHCHANNEL, client.nick, utils.SafeErrorParam(chname), client.t("No such channel"))
1704
-				}
1705
 				continue
1702
 				continue
1706
 			}
1703
 			}
1707
 			if matcher.Matches(channel) {
1704
 			if matcher.Matches(channel) {

Loading…
Откажи
Сачувај