remove sendNamesOnWho quirk, use nickForGeneralMessages quirk on Yaaic as well as atomic
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
e993e8a32c
commit
2d19acb846
@ -5,17 +5,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Quirks struct {
|
type Quirks struct {
|
||||||
SendNamesOnWho bool
|
|
||||||
RequireNickForGeneralMessages bool
|
RequireNickForGeneralMessages bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetQuirksForClient(ver string) Quirks {
|
func GetQuirksForClient(ver string) Quirks {
|
||||||
if strings.Contains(ver, "HexChat") {
|
if strings.Contains(ver, "mIRC") || strings.Contains(ver, "Atomic") || strings.Contains(ver, "Yaaic") {
|
||||||
return Quirks{
|
|
||||||
SendNamesOnWho: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if strings.Contains(ver, "mIRC") || /*strings.Contains(ver, "Revolution") ||*/ strings.Contains(ver, "Atomic") {
|
|
||||||
return Quirks{
|
return Quirks{
|
||||||
RequireNickForGeneralMessages: true,
|
RequireNickForGeneralMessages: true,
|
||||||
}
|
}
|
||||||
|
@ -594,12 +594,7 @@ func (s *Server) handleJoinedCommand(command string, args []string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// s.sendWho(args[0])
|
// Ignore this command
|
||||||
// s.sendNames() // fixes hexchat, but andchat always sends WHO /immediately/ after NAMES end, causing an infinite loop
|
|
||||||
|
|
||||||
if s.quirks.SendNamesOnWho {
|
|
||||||
s.sendNames()
|
|
||||||
}
|
|
||||||
|
|
||||||
case "MODE":
|
case "MODE":
|
||||||
if len(args) < 1 {
|
if len(args) < 1 {
|
||||||
|
Loading…
Reference in New Issue
Block a user