#!/usr/bin/perl use SOCKS;
$ip=$ARGV[0]; $port1=$ARGV[1]; $server=$ARGV[2]; $port=$ARGV[3]; $chan=$ARGV[4]; $mess=$ARGV[5]; $name=$ARGV[6];
$buff = 65000;
$sock = new NET::SOCKS(socks_addr=>"$ip", socks_port=>"$port1", $protocol_version=>5) || kill INT => $$;
$s = $sock->connect(peer_addr=>$server. perr_port=>$port) || die "fuck: no connect";
if ($sock -> param ('status_num') eq SOCKS_OKAY {
$s->send("USER $name $name $name:$name\n"); $s->send("NICK $name\n"); $s->send("VERSION\n"); $s->send("JOIN $chan\n");
while ($s->recv($answer, $buff) eq "true") {
if ($answer = ~/(PING :)(.*)/) {$s->send("PONG $2\n");} if ($answer = ~/^:(\S+)!(\S+)\@(\S+)\sPRIVMSG\s(\S+)\s:[!](\S+)/) { if($5 eq "f") {$s->send("PRIVMSG $4 :$mess\n");} } if ($answer = ~/^:(\S+)!(\S+)\@(\S+)\sBAN\s(\S+)\s:[@](\S+)\s:(\S+)/) { if($5 eq "$name") {kill INT => $$;} }
print "$answer"; } $sock->close(); } где глюк?