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 needed help

Old posts that have not been replied to for several years.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Weird it shouldn't happen though, hmm.

Type:

Code: Select all

.tcl set errorInfo
in DCC and paste me the results.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

<Bot> What? You need '.help'

:roll:

Mmm... Does the TCL detect fake quit msg too?
Etc.

* Quits: Eggy (egg@egghelp.org) (Quit (boston.ma.us.galaxynet.org singnet.sg.galaxynet.org))
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Fake quit messages will not be detected, as I have set llength of the reason to be 2, and lindex 2 to be null. So fake quit messages will be ignored as they will have more than 2 indexes, lindex 2 i.e. and the length of the list will be also greater than 2, i.e. 3 or more.

For the .tcl to work in DCC you need to comment the unbind dcc:tcl bind in the .conf file. (Add an # infront of it).
# Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
#unbind dcc n tcl *dcc:tcl
#unbind dcc n set *dcc:set
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Hmmm... I added # infront but it still doesn't work...
#Comment these two lines if you wish to enable the .tcl and .set commands.
# If you select your owners wisely, you should be okay enabling these.
#unbind dcc n tcl *dcc:tcl
#unbind dcc n set *dcc:set
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Restart the bot then try.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Restarted..

<user> .tcl set errorInfo
<bot> What? You need '.help'
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

geez...Dude :o
Read.
Your.
Conf.
File.
every single redundant question has a) been answered already, or b) is well documented either in the conf file, in ~/doc/settings, or, here's the major shocker, in Setting Up Your Eggdrop. You actually have to read them, not just open them up, and say "OK, read em and it didn't help." The answers you seek are already right in front of your eyes :o
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Code: Select all

.tcl set errorInfo
The bot replies,

Tcl: can't read "errorinfo": no such variable
Tcl: while executing
Tcl: "set errorinfo"
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

It's 'errorInfo', not 'errorinfo'. CaSe matters.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind pub n "\$error" tcldebug:error

proc tcldebug:error {nick host hand chan args} {
  foreach line [split $::errorInfo \n] {
    putquick "PRIVMSG $chan :$line"
  }
}
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

gb wrote:It's 'errorInfo', not 'errorinfo'. CaSe matters.
<user> .tcl set errorinfo
<bot> Tcl error: can't read "errorinfo": no such variable
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

MeTroiD wrote:

Code: Select all

bind pub n "\$error" tcldebug:error

proc tcldebug:error {nick host hand chan args} {
  foreach line [split $::errorInfo \n] {
    putquick "PRIVMSG $chan :$line"
  }
}
Where should I place this at?
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

In an any tcl file and restart the bot, I guess.
But anyway using the same case:

Code: Select all

.tcl set errorInfo
Should definately work!
Did you enable the .set also? If not comment the unbind of that as well!
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

WeiJie wrote:
gb wrote:It's 'errorInfo', not 'errorinfo'. CaSe matters.
<user> .tcl set errorinfo
<bot> Tcl error: can't read "errorinfo": no such variable
What part of "Case Matters" don't you understand?
User avatar
WeiJie
Halfop
Posts: 73
Joined: Thu May 20, 2004 9:30 pm
Location: Singapore

Post by WeiJie »

Tcl: syntax error in expression "(![info exists netsplit_lock]) && ([lsearch -exact $checkmod"
Tcl: ("if" test expression)
Tcl: while compiling
Tcl: "if {(![info exists netsplit_lock]) && ([lsearch -exact $checkmode "m"] == -1) && ([string match "*.*.galaxynet.org" [lindex $reason 0]]) && ([string m..."
Tcl: (compiling body of proc "netsplit:lock", line 4)
Tcl: invoked from within
Tcl: "netsplit:lock $_stnm1 $_stnm2 $_stnm3 $_stnm4 $_stnm5"
WeiJie
Admin of IntelFusion
Http://dj-online.org
#Sparks@Boatquay @ mIRC Galaxynet
Locked