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.

Tcl error

Old posts that have not been replied to for several years.
Locked
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Tcl error

Post by duofruo »

What is the problem with this script :

bind pub m|m !chanset set:chan

proc set:chan {nick uhost hand chan arg} {
channel set $chan [join [lrange [split $arg] 0 end]]
puthelp "NOTICE $nick :set \002[join [lrange [split $arg] 0 end]]\002 on \002$chan\002"
}


because when i use : !chanset flood-chan 0:0 i get this error in dcc
Tcl error [set:chan]: illegal channel flood type: flood-chan 5:5
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Re: Tcl error

Post by bobjuh »

[09:58] <DuoFruo> anyone can help me whith a tcl script ?
[10:05] <onkko> sure
[10:05] <onkko> just ask your question
[10:05] <DuoFruo> Tcl error [set:chan]: illegal channel flood type: flood-chan 1:1


......

[10:43] * DuoFruo (radu@Duo-Fruo.users.quakenet.org) has joined #eggdrop.support
[10:43] <DuoFruo> i fixed the problem whith the manuals, yhax a lot
[10:43] <DuoFruo> bye
[10:43] * DuoFruo (radu@Duo-Fruo.users.quakenet.org) has left #eggdrop.support
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

#tcl@undernet.org

Post by user »

[10:34] (ciumegu-) Tcl error [set:chan]: illegal channel flood type: flood-chan 5:5
[10:35] (ciumegu-) but i get this error when i use !chanset flood-chan 0:0
[10:36] (+user) that's because the entire arg part is passed as one argument to 'channel set'
[10:38] (ciumegu-) and how do i fix that ?
[10:40] (+user) try replacing the first line in the proc with 'eval channel set [list $chan] [split $arg]'
[10:41] (ciumegu-) like this ?
[10:41] (ciumegu-) bind pub m|m !chanset setchan
[10:41] (ciumegu-) proc setchan {nick uhost hand chan arg} {
[10:41] (ciumegu-) eval channel set [list $chan] [split $arg]
[10:41] (ciumegu-) puthelp "NOTICE $nick :set \002[join [lrange [split $arg] 0 end]]\002 on \002$chan\002"
[10:41] (ciumegu-) }
[10:41] (ciumegu-) thx a lot user
...btw: I think he's the same person... ciumegu-(radu@ciumegu.users.undernet.org)
Have you ever read "The Manual"?
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

seams that way
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

On quakenet they didn't wanted to help him :P
[10:31] <Mtac> DuoFruo: didn't you write this script your self ? - because it seems to me that don't know what does what
[10:35] <onkko> if you dont have time to learn how to script then dont script, simple as that. We dont write your scripts
[10:35] <DuoFruo> bleah
[10:35] * DuoFruo (radu@Duo-Fruo.users.quakenet.org) has left #eggdrop.support
On quakenet they didn't wanted to help him :P

[10:43] * DuoFruo (radu@Duo-Fruo.users.quakenet.org) has joined #eggdrop.support
[10:43] <DuoFruo> i fixed the problem whith the manuals, yhax a lot
[10:43] <DuoFruo> bye
[10:43] * DuoFruo (radu@Duo-Fruo.users.quakenet.org) has left #eggdrop.support
10:40] (+user) try replacing the first line in the proc with 'eval channel set [list $chan] [split $arg]'
[10:41] (ciumegu-) thx a lot user
Yeah right manuals :P
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

bobjuh wrote:Yeah right manuals :P
hmm, i thought user is my private manual....how dare you :(
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

I din`t want to make asame :) ( sorry my english:) .

Thx a lot user, Ur the best :))
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

By the way, from where i can teach how to make tcl scripts?



I wana learn like u user :) and again thx for help
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

duofruo wrote:By the way, from where i can teach how to make tcl scripts?
you cant teach something you dont know yourself...

and if you want to learn try http://www.suninet.nl/tclguide/
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

I dont know english so good, i need a romanian manual :(
b
bobjuh
Master
Posts: 268
Joined: Wed Oct 03, 2001 8:00 pm
Location: Netherlands
Contact:

Post by bobjuh »

duofruo wrote:I dont know english so good, i need a romanian manual :(
www.google.com is your friend ;)
User avatar
duofruo
Halfop
Posts: 94
Joined: Thu Oct 23, 2003 3:17 pm
Location: Ploiesti@.ro
Contact:

Post by duofruo »

Ya cool :)
I search it a lot of time and i get only crazy stuff :) Im borred of www.google.com
Locked