| View previous topic :: View next topic |
| Author |
Message |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sun Mar 11, 2007 5:28 am Post subject: Bind .tcl to private or channel messages instead of DCC? |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Mar 11, 2007 7:57 am Post subject: |
|
|
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 |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Sun Mar 11, 2007 10:00 am Post subject: |
|
|
Thanks Sir_Fz!
Really appreciate the help !!  _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
================================== |
|
| Back to top |
|
 |
|