Mercurial > hg
changeset 840:2903fd66c3ad
Be more verbose about verbatim mode
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 May 2006 19:04:22 +0200 |
parents | 5759770c1968 |
children | f8c0447beec2 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/commands.c Thu May 04 18:56:06 2006 +0200 +++ b/mcabber/src/commands.c Thu May 04 19:04:22 2006 +0200 @@ -817,15 +817,22 @@ return; } else if ((!strcasecmp(subcmd, "begin")) || (!strcasecmp(subcmd, "verbatim"))) { + bool verbat; gchar *subj_utf8 = to_utf8(arg); - if (!strcasecmp(subcmd, "verbatim")) + if (!strcasecmp(subcmd, "verbatim")) { scr_set_multimode(2, subj_utf8); - else + verbat = TRUE; + } else { scr_set_multimode(1, subj_utf8); + verbat = FALSE; + } - scr_LogPrint(LPRINT_NORMAL, "Entered multi-line message mode."); + scr_LogPrint(LPRINT_NORMAL, "Entered %smulti-line message mode.", + verbat ? "VERBATIM " : ""); scr_LogPrint(LPRINT_NORMAL, "Select a buddy and use \"/msay send\" " "when your message is ready."); + if (verbat) + scr_LogPrint(LPRINT_NORMAL, "Use \"/msay abort\" to abort this mode."); g_free(subj_utf8); return; } else if (strcasecmp(subcmd, "send") && strcasecmp(subcmd, "send_to")) {