diff options
author | Tom Feist <shabble@metavore.org> | 2011-04-01 06:18:23 +0000 |
---|---|---|
committer | Tom Feist <shabble@metavore.org> | 2011-04-01 06:18:23 +0000 |
commit | 8fed96c49f7831240b207480694ea498275724d5 (patch) | |
tree | eeb136e9456dbb00de6b1a4b0325153dc888596a /quit-notify | |
parent | uberprompt: general cleanup (diff) | |
download | irssi-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.pl | 7 |
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 { |