mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-11 07:13:31 -07:00
don't add trailing = to ISUPPORT tokens when value is empty string
This commit is contained in:
@@ -43,9 +43,10 @@ func (il *List) AddNoValue(name string) {
|
||||
|
||||
// getTokenString gets the appropriate string for a token+value.
|
||||
func getTokenString(name string, value *string) string {
|
||||
if value == nil {
|
||||
if value == nil || len(*value) == 0 {
|
||||
return name
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s=%s", name, *value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user