]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CLI/Support.pl
take a few more things literally
[infobot.git] / src / CLI / Support.pl
index c591a5505414d801b7d5411fba91d05e6a3dca2e..7ee3a0b0dc0a2ad3aa009b2cbc8f7a381ef02b95 100644 (file)
@@ -8,19 +8,21 @@ use strict;
 
 my $postprocess;
 
+use vars qw($uh $message);
+
 sub cliloop {
     &status("Using CLI...");
     &status("Now type what you want.");
 
     $nuh = "local!local\@local";
     $uh  = "local\@local";
-    $who = "local";
-    $orig{who} = "local";
+    $who = 'local';
+    $orig{who} = 'local';
     $ident = $param{'ircUser'};
     $chan = $talkchannel = "_local";
     $addressed = 1;
     $msgType = 'private';
-    $host = "local";
+    $host = 'local';
 
     # install libterm-readline-gnu-perl to get history support
     use Term::ReadLine;
@@ -45,7 +47,7 @@ sub msg {
     }
 
     if (!defined $msg) {
-       $msg ||= "NULL";
+       $msg ||= 'NULL';
        &WARN("msg: msg == $msg.");
        return;
     }