mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
don't add trailing = to ISUPPORT tokens when value is empty string
This commit is contained in:
parent
29165ded62
commit
8eee127e4d
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user