git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@510
c11ca15a-4712-0410-83d8-
924469b57eb5
#
# insult.pl: insult engine
-# ???: ???
+# TODO: move this code out to a common file like I did with DNS.
+# => use the command hooks system aswell
#
use strict;
sub Insult {
my ($insultwho) = @_;
- return unless &loadPerlModule("Net::Telnet");
+ return unless &::loadPerlModule("Net::Telnet");
my $t = new Net::Telnet(Timeout => 3);
$t->Net::Telnet::open(Host => "insulthost.colorado.edu", Port => "1695");
$line =~ s/^\s*You are/$insultwho is/i;
}
- &performStrictReply($line);
+ &::pSReply($line);
}
1;