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.
Help for those learning Tcl or writing their own scripts.
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Sat Jan 30, 2010 10:44 am
Hey
Is is possible to make a script to output some stuff from putlog ?
don't know how i els can explain it
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sat Jan 30, 2010 2:28 pm
You have to find another way to explain it.
TCL_no_TK
Owner
Posts: 509 Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire
Post
by TCL_no_TK » Sat Jan 30, 2010 5:40 pm
Code: Select all
set putlogchan "#debug"
if {[info commands putlog_old] != "putlog_old"} {
rename putlog putlog_old
}
proc putlog {text} {
global putlogchan
puthelp "PRIVMSG $putlogchan :$text"
putlog_old "$text"
}
something like that should do the trick
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Wed Feb 10, 2010 5:33 pm
thanks, can it be done. So i can decide what it should output?
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Wed Feb 10, 2010 5:36 pm
Using TCL_no_TK's code, you could surely alter whatever is logged using the putlog command. It will, however, not affect any of eggdrop's native logging (only way to intervene these log messages would be to edit the sourcecode).
NML_375