degesch: make text attributes toggle formatting

Instead of just setting it on.

Fixes bitlbee.
This commit is contained in:
Přemysl Eric Janouch 2015-10-01 21:05:32 +02:00
parent 99ac971b66
commit 762aaffecf
1 changed files with 8 additions and 8 deletions

View File

@ -905,7 +905,7 @@ enum formatter_item_type
FORMATTER_ITEM_ATTR, ///< Formatting attributes
FORMATTER_ITEM_FG_COLOR, ///< Foreground color
FORMATTER_ITEM_BG_COLOR, ///< Background color
FORMATTER_ITEM_SIMPLE, ///< For mIRC formatting only so far
FORMATTER_ITEM_SIMPLE, ///< Toggle mIRC formatting
FORMATTER_ITEM_IGNORE_ATTR ///< Un/set attribute ignoration
};
@ -2707,7 +2707,7 @@ formatter_flush_attr
state->want_background = -1;
return true;
case FORMATTER_ITEM_SIMPLE:
state->want |= item->attribute;
state->want ^= item->attribute;
attribute_printer_update (state);
return true;
case FORMATTER_ITEM_FG_COLOR:
@ -9579,17 +9579,17 @@ static const char *g_first_time_help[] =
"",
"\x02Welcome to degesch!",
"",
"To get a list of all commands, type \x02/help\x0f. To obtain",
"To get a list of all commands, type \x02/help\x02. To obtain",
"more information on a command or option, simply add it as",
"a parameter, e.g. \x02/help set\x0f or \x02/help behaviour.logging\x0f.",
"a parameter, e.g. \x02/help set\x02 or \x02/help behaviour.logging\x02.",
"",
"To switch between buffers, press \x02"
"F5/Ctrl-P\x0f or \x02" "F6/Ctrl-N\x0f.",
"F5/Ctrl-P\x02 or \x02" "F6/Ctrl-N\x02.",
"",
"Finally, adding a network is as simple as:",
" - \x02/server add freenode\x0f",
" - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x0f",
" - \x02/connect freenode\x0f",
" - \x02/server add freenode\x02",
" - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x02",
" - \x02/connect freenode\x02",
"",
"That should be enough to get you started. Have fun!",
""