]> git.donarmstrong.com Git - infobot.git/blobdiff - src/CLI/Support.pl
* Rebranding from blootbot to infobot
[infobot.git] / src / CLI / Support.pl
index c591a5505414d801b7d5411fba91d05e6a3dca2e..60f171c688d80f115f5d18bd6eedab16c4657568 100644 (file)
@@ -8,23 +8,25 @@ 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;
-    my $term = new Term::ReadLine 'blootbot';
+    my $term = new Term::ReadLine 'infobot';
     my $prompt = "$who> ";
     #$OUT = $term->OUT || STDOUT;
     while ( defined ($_ = $term->readline($prompt)) ) {
@@ -45,7 +47,7 @@ sub msg {
     }
 
     if (!defined $msg) {
-       $msg ||= "NULL";
+       $msg ||= 'NULL';
        &WARN("msg: msg == $msg.");
        return;
     }