mirror of
				https://github.com/ergochat/ergo.git
				synced 2025-10-30 21:37:23 +01:00 
			
		
		
		
	simplify new channel insert
This commit is contained in:
		
							parent
							
								
									02abeeb164
								
							
						
					
					
						commit
						e409bcec99
					
				| @ -35,11 +35,7 @@ func NewChannel(s *Server, name string) *Channel { | ||||
| 	} | ||||
| 
 | ||||
| 	s.channels[name] = channel | ||||
| 	s.db.Exec(`INSERT INTO channel | ||||
|                  (name, flags, key, topic, user_limit) | ||||
|                  VALUES (?, ?, ?, ?, ?)`, | ||||
| 		channel.name, channel.flags.String(), channel.key, channel.topic, | ||||
| 		channel.userLimit) | ||||
| 	s.db.Exec(`INSERT INTO channel (name) VALUES (?)`, channel.name) | ||||
| 
 | ||||
| 	return channel | ||||
| } | ||||
|  | ||||
| @ -209,7 +209,7 @@ const ( | ||||
| 	LocalOperator UserMode = 'O' | ||||
| 	Operator      UserMode = 'o' | ||||
| 	Restricted    UserMode = 'r' | ||||
| 	ServerNotice  UserMode = 's' | ||||
| 	ServerNotice  UserMode = 's' // deprecated | ||||
| 	WallOps       UserMode = 'w' | ||||
| 
 | ||||
| 	Anonymous       ChannelMode = 'a' // flag | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeremy Latt
						Jeremy Latt