# HG changeset patch # User Mikael Berthe # Date 1146761350 -7200 # Node ID ea1204c8a30bcf543b395b1c4b17405f423a0f19 # Parent 7c74eef1d0e03ade7f93edd00237df0adc900b1c Add "/msay toggle_verbatim" diff -r 7c74eef1d0e0 -r ea1204c8a30b mcabber/src/commands.c --- a/mcabber/src/commands.c Thu May 04 18:39:25 2006 +0200 +++ b/mcabber/src/commands.c Thu May 04 18:49:10 2006 +0200 @@ -167,6 +167,7 @@ compl_add_category_word(COMPL_MULTILINE, "send"); compl_add_category_word(COMPL_MULTILINE, "send_to"); compl_add_category_word(COMPL_MULTILINE, "toggle"); + compl_add_category_word(COMPL_MULTILINE, "toggle_verbatim"); compl_add_category_word(COMPL_MULTILINE, "verbatim"); // Room category @@ -802,6 +803,11 @@ subcmd = "send"; else subcmd = "begin"; + } else if (!strcasecmp(subcmd, "toggle_verbatim")) { + if (scr_get_multimode()) + subcmd = "send"; + else + subcmd = "verbatim"; } if (!strcasecmp(subcmd, "abort")) {