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 Gust
Tue Aug 21, 2007 2:07 pm
Forum: Scripting Help
Topic: Basic File Operations
Replies: 1
Views: 1811

OK, very old topic but still problems...

With the code for reading a whole file:

Code: Select all

set fname "textfile.txt"
set fp [open $fname "r"]
set data [read -nonewline $fp] 
close $fp
set lines [split $data "\n"]
my bot just reads the first line...

How to solve that?
by Gust
Tue Jul 10, 2007 2:29 pm
Forum: Eggdrop Help
Topic: eggdrop recognize wrong hostname
Replies: 7
Views: 3683

This problem still isn't solved... I have tried to live with it, but my bot is used more and more, so the problem is beginning to start really annoying!

Maybe somebody have an option to solve this problem?
by Gust
Tue Jul 10, 2007 1:47 pm
Forum: Eggdrop Help
Topic: eggdrop deop people after I give op
Replies: 1
Views: 1880

eggdrop deop people after I give op

My bot deops people after I give them @: (19:36:11) * Marouzhka sets mode: +o Gust (19:36:13) * Battabot sets mode: -o Gust this is my chaninfo: (19:41:16) <Battabot> Settings for static channel #ergo: (19:41:17) <Battabot> Protect modes (chanmode): None (19:41:17) <Battabot> Idle Kick after (idle-k...
by Gust
Tue Jan 30, 2007 6:01 pm
Forum: Modules & Programming
Topic: MysqlTCL
Replies: 8
Views: 21026

Re: mysql

Alchera wrote:
Gust wrote:How to install this mysql module from FastBase? Is it possible to connect an eggdrop with a mysql db on another server?
Try reading the documentation?
I did... But understanding what you've read is something totally different :)
by Gust
Tue Jan 30, 2007 5:32 pm
Forum: Modules & Programming
Topic: MysqlTCL
Replies: 8
Views: 21026

Re: mysql

Use the mysql module from FastBase, i use it now for a while programming some scripts and it realy works great!... Althought i dont use Windrop but eggdrop (Linux) .. but it should work for windrop aswell... Take a look here: http://www.fastbase.co.nz/fbsql/index.html How to install this mysql modu...
by Gust
Wed Jan 17, 2007 10:38 am
Forum: Scripting Help
Topic: file manipulation (lines)
Replies: 1
Views: 1858

Another thing i've noticed; when i follow the steps like discribed by strdragon, every space is replaced by a new line.

So my file looks like

Code: Select all

hostname 1
user1
hostname5 
user5 
...
That doesn't work for me...

Thanks!

Greetings,
Gust
by Gust
Wed Jan 17, 2007 10:09 am
Forum: Tcl FAQ
Topic: Basic File Operations
Replies: 6
Views: 49868

Re: Basic File Operations

3. Deleting a line from a text file. We'll assume you want to delete a specific line. Remember that most languages, including tcl, index things starting from 0. So if you want to delete the first line, it is line 0. The second line is line 1. Etc. First of all, thanks for this explanation. In the p...
by Gust
Tue Jul 25, 2006 3:45 am
Forum: Eggdrop Help
Topic: eggdrop recognize wrong hostname
Replies: 7
Views: 3683

Do you hare more information about that?

I don't think there is a quit message when users log in, because when they are on the channel and give the /hop-command, the eggdrop recognize the hostname change...
by Gust
Mon Jul 24, 2006 10:53 am
Forum: Eggdrop Help
Topic: eggdrop recognize wrong hostname
Replies: 7
Views: 3683

have users login to ircd before joining channel Yeah, that is a solution that i could think myself. But most users have there login and channel join thingy in the perform script of their mIRC, so not really a solution... There should be a way that eggdrop recognize a hostname change... Because if h...
by Gust
Mon Jul 24, 2006 2:04 am
Forum: Eggdrop Help
Topic: eggdrop recognize wrong hostname
Replies: 7
Views: 3683

You should show us what you've written so we would know what changes you need to apply to your script for it to properly work. It is nothing in the script... The scripts works fine. I have in my script the following line: append ident "*!*" [getchanhost $nick $chan] When users join the ch...
by Gust
Sun Jul 23, 2006 7:10 am
Forum: Eggdrop Help
Topic: eggdrop recognize wrong hostname
Replies: 7
Views: 3683

eggdrop recognize wrong hostname

Hey all, I wrote an invite script, so members can ask invite voor a secret invite-only channel... Everthing is working fine, excepts som users come to the channel first, and then log in on the IRC-server. Because of the login, there hostname changes... But the bot recognize them with the hostname th...
by Gust
Wed Jun 28, 2006 2:24 pm
Forum: Scripting Help
Topic: getchanhost
Replies: 7
Views: 5681

Yups, still "*!*"

No error, and the user is on the channel...

It works when the bot is only on 1 channel...
by Gust
Wed Jun 28, 2006 1:49 pm
Forum: Scripting Help
Topic: getchanhost
Replies: 7
Views: 5681

OK, tried to remove $chan argument, but still the same problem... This is the script i've tried... bind pub o|o !ident ident_script proc ident_script { nick uhost hand chan arg } { set txt [split $arg] set player [lindex $txt 0] append ident "*!*" [getchanhost $player] puthelp "PRIVMS...
by Gust
Wed Jun 28, 2006 1:31 pm
Forum: Scripting Help
Topic: getchanhost
Replies: 7
Views: 5681

Could you give me some more information?

Because i am new to tcl-scripting, i don't really understand what you are trying to say...

Thanks!
by Gust
Wed Jun 28, 2006 12:58 pm
Forum: Scripting Help
Topic: getchanhost
Replies: 7
Views: 5681

getchanhost

Hi, i am using the following code in my script: bind pub o|o !ident ident_script proc ident_script { nick uhost hand chan arg } { set txt [split $arg] set player [lindex $txt 0] append ident "*!*" [getchanhost $player $chan] puthelp "PRIVMSG $chan :$ident" } It's a stupid script ...