From 06857c6bbbffacb7f8d5a524bc0c5e090313b5c3 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Wed, 15 Apr 2015 13:18:07 +0200
Subject: degesch: add an error buffer line type
---
degesch.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/degesch.c b/degesch.c
index 451d149..3733339 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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);
--
cgit v1.2.3-70-g09d2