diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-18 16:17:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-18 16:17:08 +0300 |
commit | ea28a76cfbace0ccc8d25e523b410f2dea339423 (patch) | |
tree | c5582fe4d9b26dc381ef90ed7a155ea050514243 /src/commands.cpp | |
parent | 8fdbbe936fc0bb99b0c3d851b7a5b522514ba2b9 (diff) | |
download | plus-ea28a76cfbace0ccc8d25e523b410f2dea339423.tar.gz plus-ea28a76cfbace0ccc8d25e523b410f2dea339423.tar.bz2 plus-ea28a76cfbace0ccc8d25e523b410f2dea339423.tar.xz plus-ea28a76cfbace0ccc8d25e523b410f2dea339423.zip |
add new chat commands.
/enablehighlight - enable sound hightlight in chat tab
/disablehighlight - disable sound hightlight in chat tab
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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 |