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 

log

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Sat Jan 30, 2010 10:44 am    Post subject: log Reply with quote

Hey

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

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jan 30, 2010 2:28 pm    Post subject: Reply with quote

You have to find another way to explain it.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Jan 30, 2010 5:40 pm    Post subject: Reply with quote

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 Wink
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Wed Feb 10, 2010 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Feb 10, 2010 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting 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