mirror of
				https://github.com/fluffle/goirc
				synced 2025-10-31 02:08:03 +00:00 
			
		
		
		
	Set EnableCapabilityNegotiation to false by default. Fix wrong variable reference in method SupportsCapability
This commit is contained in:
		
							parent
							
								
									abfcc6aac2
								
							
						
					
					
						commit
						bf99ab6001
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -143,7 +143,7 @@ func NewConfig(nick string, args ...string) *Config { | |||
| 		Recover:                     (*Conn).LogPanic, // in dispatch.go | ||||
| 		SplitLen:                    defaultSplit, | ||||
| 		Timeout:                     60 * time.Second, | ||||
| 		EnableCapabilityNegotiation: true, | ||||
| 		EnableCapabilityNegotiation: false, | ||||
| 	} | ||||
| 	cfg.Me.Ident = "goirc" | ||||
| 	if len(args) > 0 && args[0] != "" { | ||||
|  | @ -306,7 +306,7 @@ func (conn *Conn) DisableStateTracking() { | |||
| 
 | ||||
| // SupportsCapability returns true if the server supports the given capability. | ||||
| func (conn *Conn) SupportsCapability(cap string) bool { | ||||
| 	return conn.currCaps.Has(cap) | ||||
| 	return conn.supportedCaps.Has(cap) | ||||
| } | ||||
| 
 | ||||
| // HasCapability returns true if the given capability has been acked by the server during negotiation. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue