From: gwillen Date: Sun, 21 Sep 2008 18:26:46 +0000 (-0400) Subject: Fix uninitialized value warning X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=f9418f84799414a03d3fc7eeddd9488578eff353;p=instirc Fix uninitialized value warning darcs-hash:20080921182646-ebe41-06fe43324daa646cb51007010b9cc743f1765fd2.gz --- diff --git a/IrssiInterface.pl b/IrssiInterface.pl index 6ba4eaf..dcbef70 100644 --- a/IrssiInterface.pl +++ b/IrssiInterface.pl @@ -458,7 +458,7 @@ sub cmd_instance { $witem->print("Default instance is now '$inst'."); - if ($msg ne "") { + if (defined $msg && $msg ne "") { cmd_inst_say($args, $server, $witem); } }