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.

Search found 15 matches

by Spirit
Wed Oct 15, 2003 8:35 am
Forum: Archive
Topic: User requests for a script are in a stack
Replies: 4
Views: 1800

Ok, that makes sense, that the bot doesn't want to be flooded off the server :wink: I already thought about it to make a script, which builds its own queue and notifies every user, that he is on hold (may be with the queue number). This way, the user doesn't make any more requests, because he thinks...
by Spirit
Wed Oct 15, 2003 3:53 am
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

Yep, you are right. My script at the beginning was working in the first place. The problem is, that i was using a "msg"-bind, which does not work with a proc that contains the "chan" variable. Here are the final (and hopefully working :wink: ) scripts: With a list ... set msg_wel...
by Spirit
Tue Oct 14, 2003 5:20 pm
Forum: Archive
Topic: User requests for a script are in a stack
Replies: 4
Views: 1800

The script connects to a php site, which returns couple of results from a mysql db. The bot shows those results then to the user, who started that query. But the script is able to return a pretty long list and any other user requests are on hold, until the script is done with the current user. It wo...
by Spirit
Tue Oct 14, 2003 3:23 pm
Forum: Archive
Topic: User requests for a script are in a stack
Replies: 4
Views: 1800

User requests for a script are in a stack

Hi @ll!

My tcl-script is working perfectly ..thanks for your help folks!
BUT the bot is just running it user after user.
Is it possible, that the bot is serving the results of the script to several user at the same time and not one by one?

Thx in advance!
by Spirit
Mon Oct 13, 2003 5:17 pm
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

Oh man, that did it!
Sorry ..i took it out *slapmyself* :wink:
Thx very much!!!
by Spirit
Mon Oct 13, 2003 5:09 pm
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

Thx, but i didn't help. It is pretty unusual.. is TCL reading the files different, than other languages?
Usually it should read the complete line and the bot should post it completely :-?
by Spirit
Mon Oct 13, 2003 4:32 pm
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

You are right ..its better to use a textfile for that, but i still got the old problem! The bot is just posting the last word of every sentence! set cmdhelp "file.txt" proc bsd:main {nick uhost hand chan para} { global cmdhelp if {![string length $para] > 0} { set fs [open $cmdhelp r] whil...
by Spirit
Sun Oct 12, 2003 9:58 am
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

No, i want it like this:

text
more text
and more
eof

It is suppose to be a list of commands
by Spirit
Sun Oct 12, 2003 9:42 am
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

Oh, but i found that before...it is already "putserv" But after a little playing around, i almost got it! Now the bot is posting only the last word of every sentence. set msg_welcome { "Text" "more Text" "and more" "EOF" } and the bot posts: "Te...
by Spirit
Sun Oct 12, 2003 9:07 am
Forum: Archive
Topic: cant post text to a user
Replies: 14
Views: 7147

cant post text to a user

I want the bot to post a couple lines to a user. But somehow, i cant get it to work: set msg_welcome { "Text" "more Text" "and more" "EOF" } proc bsd:main {nick uhost hand chan para} { global msg_welcome if {![string length $para] > 0} { foreach {data} $msg_we...
by Spirit
Sat Oct 11, 2003 1:45 pm
Forum: Archive
Topic: "Reading" a PHP-Query
Replies: 8
Views: 3163

Thx alot egghead!!
I didnt know, where to find that tcl. I used tho old code from Papillon and now it works :o)

Thx all for your help!
by Spirit
Sat Oct 11, 2003 1:15 pm
Forum: Archive
Topic: "Reading" a PHP-Query
Replies: 8
Views: 3163

Ok now i get a little further (by using the egghttp.tcl), and there is always this message: net: connect! sock 6 net: eof!(read) socket 6 by using this code: proc pub_!bsd {nick uhost hand chan rest} { set sock [egghttp:geturl http://www.website.com/ircquery.php?pass=secret&select=search&par...
by Spirit
Sat Oct 11, 2003 11:02 am
Forum: Archive
Topic: "Reading" a PHP-Query
Replies: 8
Views: 3163

Yep ..egghttp.tcl is loaded, but after your post ;)
Didn't know i need that script *sorry*

Now there is a error:

Code: Select all

Tcl error [pub_!getresult]: invalid command name "::http::geturl"
by Spirit
Sat Oct 11, 2003 9:15 am
Forum: Archive
Topic: "Reading" a PHP-Query
Replies: 8
Views: 3163

Thx Papillon! Unfortuantely i am not getting any results back. Just for the testing i am posting the results in a dummychan right away. proc pub_!getresult {nick uhost hand chan rest} { set result [::http::data [set tok [::http::geturl http://www.website.com/ircquery.php?pass=secret&select=searc...
by Spirit
Sat Oct 11, 2003 6:06 am
Forum: Archive
Topic: "Reading" a PHP-Query
Replies: 8
Views: 3163

"Reading" a PHP-Query

Hi @ll! I got a php-site, which searches a mysql-db and sends me the results as simple text back. Is it possible to connect with the eggdrop to the page, get the results and post them into a channel? The URL looks like this: http://www.website.com/ircquery.php?pass=secret&select=search&param...