--- a/mcabber/src/commands.c Sun Apr 09 09:22:40 2006 +0200
+++ b/mcabber/src/commands.c Sun Apr 09 09:43:14 2006 +0200
@@ -166,6 +166,7 @@
compl_add_category_word(COMPL_MULTILINE, "begin");
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, "verbatim");
// Room category
@@ -782,6 +783,13 @@
return;
}
+ if (!strcasecmp(subcmd, "toggle")) {
+ if (scr_get_multimode())
+ subcmd = "send";
+ else
+ subcmd = "begin";
+ }
+
if (!strcasecmp(subcmd, "abort")) {
if (scr_get_multimode())
scr_LogPrint(LPRINT_NORMAL, "Leaving multi-line message mode.");