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.

Bind .tcl to private or channel messages instead of DCC?

General support and discussion of Eggdrop bots.
Post Reply
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Bind .tcl to private or channel messages instead of DCC?

Post by awyeah »

Just wondering, is there anyway, through which I can enable .tcl and .set in bot private or channel messages.

Currently we know its in dcc:
# 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
The main reason for this being is, sometimes I am in office behind firewall and am unable to DCC the bot. Sometimes errors are present in tcls and to correct those I use .tcl set errorInfo. So I was wondering if this command could be run through private or channel messages rather than DCC, so it would be more easier for me to find and correct tcl errors.

All help is appreciated, thanks!

JD
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If you only want to get the errorInfo, then this should be enough:

Code: Select all

bind msg n errorInfo showError

proc showError {nick uhost hand arg} {
 foreach l [split $::errorInfo \n] {
  puthelp "privmsg $nick :$l"
 }
}
Otherwise, you can simulate the .tcl command in msg (check the [eval] command).
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Thanks Sir_Fz!

Really appreciate the help !! :P
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Post Reply