X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FCLI%2FSupport.pl;h=849e4383dc4cfc68b0ce8a910d934f8aa952a2ed;hb=dd3a610c735093c82495a37a26a6353fd776dc43;hp=fd2d8c5eb6041691fb4c14acb736505d4723db87;hpb=4f243a67f1387b2176cae85d790d32fbcb96f48d;p=infobot.git diff --git a/src/CLI/Support.pl b/src/CLI/Support.pl index fd2d8c5..849e438 100644 --- a/src/CLI/Support.pl +++ b/src/CLI/Support.pl @@ -11,15 +11,15 @@ my $postprocess; use vars qw($uh $message); sub cliloop { - &status("Using CLI..."); - &status("Now type what you want."); + &status('Using CLI...'); + &status('Now type what you want.'); $nuh = "local!local\@local"; $uh = "local\@local"; $who = 'local'; $orig{who} = 'local'; $ident = $param{'ircUser'}; - $chan = $talkchannel = "_local"; + $chan = $talkchannel = '_local'; $addressed = 1; $msgType = 'private'; $host = 'local'; @@ -43,7 +43,7 @@ sub cliloop { sub msg { my ( $nick, $msg ) = @_; if ( !defined $nick ) { - &ERROR("msg: nick == NULL."); + &ERROR('msg: nick == NULL.'); return; } @@ -72,12 +72,12 @@ sub msg { sub action { my ( $target, $txt ) = @_; if ( !defined $txt ) { - &WARN("action: txt == NULL."); + &WARN('action: txt == NULL.'); return; } if ( length $txt > 480 ) { - &status("action: txt too long; truncating."); + &status('action: txt too long; truncating.'); chop($txt) while ( length $txt > 480 ); }