this is error of phpbb2egg.tcl scriptAlchera wrote:demond gave you your answer. Solution? Seems your bot is secure as the connection is failing.
Your eggdrop's telnet settings might prevent php from connecting to it. Try adding a user with *!*@<web server ip> as a host and see what happens.FILIN wrote:this is error of phpbb2egg.tcl scriptAlchera wrote:demond gave you your answer. Solution? Seems your bot is secure as the connection is failing.
this message come when I post new topic in my forum!
i think my forum dont connect to my bot (and bot do not post message in channel) beacouse it dont make ident
sor for my english
any ideas?
Code: Select all
set crap(port) 3333
set crap(pass) "password"
listen $crap(port) script phpcrap_A
proc crap_A i {control $i crap_B}
proc crap_B {i a} {
global crap
if {$a!=""} {
if {[scan $a "%s %s %\[\n\]" p c a]==3&&$p==$crap(pass)} {
# if the string was formatted, break $a apart here...
puthelp "PRIVMSG $c :$a"
}
}
set a 1
}
Code: Select all
$crap["pass"] = "password";
$crap["addr"] = "127.0.0.1";
$crap["port"] = 3333;
$crap["chan"] = "#channel";
$crap["timeout"] = 30;
function crap($stuff) {
global $crap;
$stuff = $crap["pass"]." ".$crap["chan"]." ".trim($stuff)."\n";
$sock = fsockopen($crap["addr"], $crap["port"], $i, $s, $crap["timeout"]);
if($sock) {
stream_set_blocking($sock, TRUE);
if(fwrite($sock, $stuff, strlen($stuff))) {
fclose($sock);
return 1;
} else {
fclose($sock);
return -1;
}
} else {
return 0;
}
}
# test:
$crap[1] = "Message sent.";
$crap[0] = "Connection failed.";
$crap[-1] = "Send failed.";
echo "<P>".$crap[crap("Change me!")]."</P>";
?>