All pastes #34966 Raw Edit

InitHello

public text v1 · immutable
#34966 ·published 2005-12-27 06:46 UTC
rendered paste body
sub handle_privmsg (@_)
{
        my ($who,$ident,$host,$where,$what,$client) = @_;
        print "$who said $what in $where\n";
        if (!($what =~ /^\.heard\s*?$/)) {
                print "$who said $what in $where\n";
                $lastheard{$who} = time();
                $whatsaid{$who} = $what;
                if ($where eq "nipples") {
                        $wheresaid{$who} = "private message";
                }
                else
                {
                        $wheresaid{$who} = $where;
                }
        }