From ea28a76cfbace0ccc8d25e523b410f2dea339423 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 May 2013 16:17:08 +0300 Subject: add new chat commands. /enablehighlight - enable sound hightlight in chat tab /disablehighlight - disable sound hightlight in chat tab --- src/commands.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index ab2558e2c..e6d0e9eb6 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1144,6 +1144,26 @@ impHandler1(execute) execFile(name, name, params, ""); } +impHandler1(enableHighlight) +{ + if (tab) + { + tab->setAllowHighlight(true); + if (chatWindow) + chatWindow->saveState(); + } +} + +impHandler1(disableHighlight) +{ + if (tab) + { + tab->setAllowHighlight(false); + if (chatWindow) + chatWindow->saveState(); + } +} + impHandler0(testsdlfont) { #if defined USE_OPENGL && defined DEBUG_SDLFONT -- cgit v1.2.3-60-g2f50