comparison mcabber/src/commands.c @ 838:ea1204c8a30b

Add "/msay toggle_verbatim"
author Mikael Berthe <mikael@lilotux.net>
date Thu, 04 May 2006 18:49:10 +0200
parents 7c74eef1d0e0
children 2903fd66c3ad
comparison
equal deleted inserted replaced
837:7c74eef1d0e0 838:ea1204c8a30b
165 compl_add_category_word(COMPL_MULTILINE, "abort"); 165 compl_add_category_word(COMPL_MULTILINE, "abort");
166 compl_add_category_word(COMPL_MULTILINE, "begin"); 166 compl_add_category_word(COMPL_MULTILINE, "begin");
167 compl_add_category_word(COMPL_MULTILINE, "send"); 167 compl_add_category_word(COMPL_MULTILINE, "send");
168 compl_add_category_word(COMPL_MULTILINE, "send_to"); 168 compl_add_category_word(COMPL_MULTILINE, "send_to");
169 compl_add_category_word(COMPL_MULTILINE, "toggle"); 169 compl_add_category_word(COMPL_MULTILINE, "toggle");
170 compl_add_category_word(COMPL_MULTILINE, "toggle_verbatim");
170 compl_add_category_word(COMPL_MULTILINE, "verbatim"); 171 compl_add_category_word(COMPL_MULTILINE, "verbatim");
171 172
172 // Room category 173 // Room category
173 compl_add_category_word(COMPL_ROOM, "affil"); 174 compl_add_category_word(COMPL_ROOM, "affil");
174 compl_add_category_word(COMPL_ROOM, "ban"); 175 compl_add_category_word(COMPL_ROOM, "ban");
800 if (!strcasecmp(subcmd, "toggle")) { 801 if (!strcasecmp(subcmd, "toggle")) {
801 if (scr_get_multimode()) 802 if (scr_get_multimode())
802 subcmd = "send"; 803 subcmd = "send";
803 else 804 else
804 subcmd = "begin"; 805 subcmd = "begin";
806 } else if (!strcasecmp(subcmd, "toggle_verbatim")) {
807 if (scr_get_multimode())
808 subcmd = "send";
809 else
810 subcmd = "verbatim";
805 } 811 }
806 812
807 if (!strcasecmp(subcmd, "abort")) { 813 if (!strcasecmp(subcmd, "abort")) {
808 if (scr_get_multimode()) 814 if (scr_get_multimode())
809 scr_LogPrint(LPRINT_NORMAL, "Leaving multi-line message mode."); 815 scr_LogPrint(LPRINT_NORMAL, "Leaving multi-line message mode.");