]> hydra-www.ietfng.org Git - instirc/commitdiff
Fix uninitialized value warning
authorgwillen <gwillen@nerdnet.org>
Sun, 21 Sep 2008 18:26:46 +0000 (14:26 -0400)
committergwillen <gwillen@nerdnet.org>
Sun, 21 Sep 2008 18:26:46 +0000 (14:26 -0400)
darcs-hash:20080921182646-ebe41-06fe43324daa646cb51007010b9cc743f1765fd2.gz

IrssiInterface.pl

index 6ba4eaf6c28a2219e68d035eed6b8bf5ac91742a..dcbef701fbd894091481538eea7786dae029002c 100644 (file)
@@ -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);
   }
 }