2018-03-24 01:37:40 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Quirks struct {
|
|
|
|
RequireNickForGeneralMessages bool
|
|
|
|
}
|
|
|
|
|
|
|
|
func GetQuirksForClient(ver string) Quirks {
|
2018-03-24 02:40:20 +00:00
|
|
|
if strings.Contains(ver, "mIRC") || strings.Contains(ver, "Atomic") || strings.Contains(ver, "Yaaic") {
|
2018-03-24 01:37:40 +00:00
|
|
|
return Quirks{
|
|
|
|
RequireNickForGeneralMessages: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
return Quirks{}
|
|
|
|
}
|
|
|
|
}
|