This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Timeout/EOF ident connection

Help for those learning Tcl or writing their own scripts.
Post Reply
Z
Zumari
Voice
Posts: 2
Joined: Wed Oct 19, 2011 11:22 pm

Timeout/EOF ident connection

Post by Zumari »

Hello Eggdrop community. I install Eggdrop in my dedicated server and a i try run this TLC:

Code: Select all

#settings
set settings(port) "32578"
set settings(pass) "WkdwemEzTmtZV2wzY2c"
set settings(chan) "#MidnightArab-Torrents"

listen $settings(port) script listen:grab

proc listen:grab {idx} {
    control $idx listen:control
}

proc listen:control {idx args} {
    global settings
        
        if{ [scan $args "%s %\[\n\]" pass message] == 2 && $pass == $settings(pass) } {
        putquick "PRIVMSG $settings(chan) : $message"
    }
}

putlog "New torrents announce script loaded!"

This TLC receive information via php:

Code: Select all

function ircbot($msg)
{
        $bot = array("ip"=>"ip",
                     "port"=>0,
                     "pass" => "password",
                        );
        if(empty($msg))
                return; 
                
    $fp = fsockopen($bot["ip"], $bot["port"] , $errno, $errstr, 45);
        if($fp)
        {
                sleep(1);
                fputs($fp, $bot["pass"]  . " " . $msg . "\n");
                sleep(1);
                fclose($fp);
    } 
 
}

But not working. Eggdrop give this error:

<bot> [04:23:47] Telnet connection: ip/56217
<bot> [04:23:47] Timeout/EOF ident connection
<bot> [04:23:55] Lost telnet connection to telnet@ip/56217


How to fix this problem? Need Help pls :(
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Give a try to user's "attempt to make the built in sockets even more user friendly" that can be found here.
Once the game is over, the king and the pawn go back in the same box.
Z
Zumari
Voice
Posts: 2
Joined: Wed Oct 19, 2011 11:22 pm

Post by Zumari »

You can be more specific? I see in this post most examples. But what i can do in this situation?
Post Reply