diff --git a/scripts/quitmsg.pl b/scripts/quitmsg.pl index 1a946a19..981b15a0 100644 --- a/scripts/quitmsg.pl +++ b/scripts/quitmsg.pl @@ -9,7 +9,7 @@ my $quitfile = glob "~/.irssi/irssi.quit"; sub cmd_quit { my ($data, $server, $channel) = @_; - return if ($data eq ""); + return if ($data ne ""); open (f, $quitfile) || return; my $lines = 0; while() { $lines++; };