| View previous topic :: View next topic |
| Author |
Message |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Sat Jan 30, 2010 10:44 am Post subject: log |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Jan 30, 2010 5:40 pm Post subject: |
|
|
| Code: | 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  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Wed Feb 10, 2010 5:33 pm Post subject: |
|
|
thanks, can it be done. So i can decide what it should output? _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Feb 10, 2010 5:36 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|