mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 10:42:52 +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