2 # CLI/Support.pl: Stubs for functions that are from IRC/*
3 # Author: Tim Riker <Tim@Rikers.org>
4 # Version: v0.1 (20021028)
9 &status("Using CLI...");
10 &status("Now type what you want.");
12 $nuh = "local!local\@local";
16 $ident = $param{'ircNick'};
17 $chan = $talkchannel = "_local";
21 # install libterm-readline-gnu-perl to get history support
23 $term = new Term::ReadLine 'blootbot';
25 #$OUT = $term->OUT || STDOUT;
26 while ( defined ($_ = $term->readline($prompt)) ) {
30 last if ($message =~ m/^quit$/);
31 $_ = &process() if $message;
37 my ($nick, $msg) = @_;
39 &ERROR("msg: nick == NULL.");
45 &WARN("msg: msg == $msg.");
49 &status(">$nick< $msg");
51 print("$nick: $msg\n");
55 my ($nick,$chan) = @_;
59 sub performStrictReply {
67 sub performAddressedReply {
68 return unless ($addressed);