degesch: add an error buffer line type
This commit is contained in:
		
							parent
							
								
									c2c9d4dc58
								
							
						
					
					
						commit
						06857c6bbb
					
				| @ -114,7 +114,8 @@ enum buffer_line_type | ||||
| 	BUFFER_LINE_PART,                   ///< PART
 | ||||
| 	BUFFER_LINE_KICK,                   ///< KICK
 | ||||
| 	BUFFER_LINE_QUIT,                   ///< QUIT
 | ||||
| 	BUFFER_LINE_STATUS                  ///< Whatever status messages
 | ||||
| 	BUFFER_LINE_STATUS,                 ///< Whatever status messages
 | ||||
| 	BUFFER_LINE_ERROR                   ///< Whatever error messages
 | ||||
| }; | ||||
| 
 | ||||
| struct buffer_line | ||||
| @ -733,6 +734,9 @@ buffer_line_display (struct app_context *ctx, struct buffer_line *line) | ||||
| 		break; | ||||
| 	case BUFFER_LINE_STATUS: | ||||
| 		str_append_printf (&text, " -  %s", object); | ||||
| 		break; | ||||
| 	case BUFFER_LINE_ERROR: | ||||
| 		str_append_printf (&text, "=!= %s", object); | ||||
| 	} | ||||
| 
 | ||||
| 	free (who); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user