aboutsummaryrefslogtreecommitdiffstats
path: root/quit-notify
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-04-01 06:18:23 +0000
committerTom Feist <shabble@metavore.org>2011-04-01 06:18:23 +0000
commit8fed96c49f7831240b207480694ea498275724d5 (patch)
treeeeb136e9456dbb00de6b1a4b0325153dc888596a /quit-notify
parentuberprompt: general cleanup (diff)
downloadirssi-scripts-8fed96c49f7831240b207480694ea498275724d5.tar.gz
irssi-scripts-8fed96c49f7831240b207480694ea498275724d5.zip
notifyquit: flippy-floppy some logic for clarity.
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 {