egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sun Mar 11, 2007 5:28 am    Post subject: Bind .tcl to private or channel messages instead of DCC? Reply with quote

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:

Quote:

# 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.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Mar 11, 2007 7:57 am    Post subject: Reply with quote

If you only want to get the errorInfo, then this should be enough:
Code:
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).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Sun Mar 11, 2007 10:00 am    Post subject: Reply with quote

Thanks Sir_Fz!

Really appreciate the help !! Razz
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber