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.

log

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

log

Post by Fire-Fox »

Hey

Is is possible to make a script to output some stuff from putlog ?
don't know how i els can explain it :)
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You have to find another way to explain it.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

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 :wink:
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

thanks, can it be done. So i can decide what it should output?
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply