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.

PhP script connecting to the eggdrop

Old posts that have not been replied to for several years.
Locked
T
Tuk4

PhP script connecting to the eggdrop

Post by Tuk4 »

Hello

I have a question.I want to connect from my website to the eggdrop.
I have a script fot it and the connection is made.

The only problem is that the bot don't accept it

I get
[16:24] Telnet connection: wmphpp03.st2.lyceu.net/35681
[16:24] Timeout/EOF ident connection


Whats the problem here and how can I solve it??


Grtz Tuk4,
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Already one person or bot is connected with same host on bot.Try couple of times, ti will work, just try some times..
T
Tuk4

Post by Tuk4 »

I tried it a hundred times by now.
No luck.
Started the bot again but he still gives the same error.

Grtz,
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Disconnect some bots connected from same ip then you and then connect.Btw whats the php script?
T
Tuk4

Post by Tuk4 »

There are no bots connected from the same ip.
This bot stands alone.

It's a script for vbb
this is the php file
<?
function postonirc ($posttext) {
global $goto, $DB_site, $Action, $homeurl, $ircdata;

$fp = fsockopen ($ircdata[ircserver], $ircdata[ircport], $errno, $errstr, 30);

if (!$fp) { echo "$errstr ($errno)<br>\n";}
else
{
global $threadid, $postusername, $subject, $forumid;

if($ircdata[ircchannel1] != FALSE){
fputs($fp,$posttext);
}

$info .= fgets ($fp,1280);
fclose ($fp);
}
}

$forumname = $DB_site->query_first("SELECT title FROM forum WHERE forumid=".$forumid);

$putstring = "§".$ircdata[ircchannel1]." ";
$putstring .= "§\002[\00311,01Board\00300,01]\002 New thread in: \002".$forumname[title]."\002 Poster: \002".$postusername." \002 Subject: \002".$subject."\002";
$putstring .= "§\002[\00311,01Board\00300,01]\002 Link: http://www.mydomain.com/".$goto."\002";
$putstring .= "\n";
postonirc($putstring);


?>

And this is the tcl

listen 13481 script vbulletinaccept5
proc vbulletinaccept5 {idx5} {
control $idx5 vbincoming5
}
proc vbincoming5 {idx5 args5} {
if {[join $args5] != "" } {
set chan [lindex [split $args5 §] 1]
set msg [lindex [split $args5 §] 2]
set msg3 [lindex [split $args5 §] 3]
set msg4 [lindex [split $args5 §] 4]
set msg5 [lindex [split $args5 §] 5]
set msg6 [lindex [split $args5 §] 6]
set msg7 [lindex [split $args5 §] 7]
set msg8 [lindex [split $args5 §] 8]
if {[join $msg] != "" } {
putserv "PRIVMSG $chan : $msg"
}
if {[join $msg3] != "" } {
putserv "PRIVMSG $chan : $msg3"
}
if {[join $msg4] != "" } {
putserv "PRIVMSG $chan : $msg4"
}
if {[join $msg5] != "" } {
putserv "PRIVMSG $chan : $msg5"
}
if {[join $msg6] != "" } {
putserv "PRIVMSG $chan : $msg6"
}
if {[join $msg7] != "" } {
putserv "PRIVMSG $chan : $msg7"
}
if {[join $msg8] != "" } {
putserv "PRIVMSG $chan : $msg8"
}
}
killdcc $idx5
}

putlog "vbulletin announce script Loaded."


Port in the tcl and the port on the php are the same.

Grtz and thx for helping out
S
ShavdApe
Halfop
Posts: 46
Joined: Mon Dec 15, 2003 5:22 pm

Post by ShavdApe »

I recieve the same error you do but it does announce so perhaps check that your bot is getting the chan it needs to announce from
User avatar
MD87
Voice
Posts: 23
Joined: Sat Dec 14, 2002 9:04 am
Location: Leicester, UK
Contact:

Post by MD87 »

From what I remember from doing something similar, it isn't actually a problem. All it means is that eggdrop couldn't get an ident reply from the server the script was running on. There's a setting in the eggdrop.conf to reduce the time it waits for this, if that helps (sorry, I can't look it up, I'm working from my laptop and don't have a config file on here :) )
Locked