aboutsummaryrefslogtreecommitdiffstats
path: root/quit-notify
diff options
context:
space:
mode:
Diffstat (limited to 'quit-notify')
-rw-r--r--quit-notify/notifyquit.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/quit-notify/notifyquit.pl b/quit-notify/notifyquit.pl
index 606e08a..07a6066 100644
--- a/quit-notify/notifyquit.pl
+++ b/quit-notify/notifyquit.pl
@@ -27,8 +27,9 @@ sub script_is_loaded {
return exists($Irssi::Script::{shift . '::'});
}
-if (not script_is_loaded('uberprompt')) {
-
+if (script_is_loaded('uberprompt')) {
+ app_init();
+} else {
print "This script requires 'uberprompt.pl' in order to work. "
. "Attempting to load it now...";
@@ -39,8 +40,6 @@ if (not script_is_loaded('uberprompt')) {
load_uberprompt_failed("File does not exist");
}
app_init();
-} else {
- app_init();
}
sub load_uberprompt_failed {