diff options
| author | 2017-10-21 18:10:40 -0400 | |
|---|---|---|
| committer | 2017-10-21 18:10:40 -0400 | |
| commit | e9f3c2248ab67e1265667de5ddc6bc59ce235c98 (patch) | |
| tree | 1f5d9b5954582e6c68f69ae0226e7b969c6549fa /src/modules/notifier/libkvinotifier.cpp | |
| parent | Make the issue/PR templates much simpler. (#2301) (diff) | |
| download | KVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.tar.gz KVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.tar.bz2 KVIrc-e9f3c2248ab67e1265667de5ddc6bc59ce235c98.zip | |
notifier module: general code cleanup
Diffstat (limited to 'src/modules/notifier/libkvinotifier.cpp')
| -rw-r--r-- | src/modules/notifier/libkvinotifier.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/notifier/libkvinotifier.cpp b/src/modules/notifier/libkvinotifier.cpp index fa21755df..47f814964 100644 --- a/src/modules/notifier/libkvinotifier.cpp +++ b/src/modules/notifier/libkvinotifier.cpp @@ -36,8 +36,6 @@ #include "KviTimeUtils.h" #include "KviOptions.h" -#include <QSplitter> - NotifierWindow * g_pNotifierWindow = nullptr; kvi_time_t g_tNotifierDisabledUntil = 0; @@ -255,10 +253,8 @@ static bool notifier_kvs_cmd_show(KviKvsModuleCommandCall * c) static bool notifier_kvs_fnc_isEnabled(KviKvsModuleFunctionCall * c) { - bool bCheck; - if(!KVI_OPTION_BOOL(KviOption_boolEnableNotifier)) - bCheck = false; - else + bool bCheck = false; + if(KVI_OPTION_BOOL(KviOption_boolEnableNotifier)) bCheck = g_tNotifierDisabledUntil < kvi_unixTime(); c->returnValue()->setBoolean(bCheck); return true; |
