From 8fed96c49f7831240b207480694ea498275724d5 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Fri, 1 Apr 2011 07:18:23 +0100 Subject: notifyquit: flippy-floppy some logic for clarity. --- quit-notify/notifyquit.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'quit-notify/notifyquit.pl') 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 { -- cgit v1.2.3