diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-15 13:18:07 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-04-15 21:22:01 +0200 |
commit | 06857c6bbbffacb7f8d5a524bc0c5e090313b5c3 (patch) | |
tree | 2e9ad3ed0c4b86ef223793aefaadb1cd0a484f06 /degesch.c | |
parent | c2c9d4dc581d76f171cc99cfa8d1ba01affac030 (diff) | |
download | xK-06857c6bbbffacb7f8d5a524bc0c5e090313b5c3.tar.gz xK-06857c6bbbffacb7f8d5a524bc0c5e090313b5c3.tar.xz xK-06857c6bbbffacb7f8d5a524bc0c5e090313b5c3.zip |
degesch: add an error buffer line type
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |