| View previous topic :: View next topic |
| Author |
Message |
Driber Voice
Joined: 18 Sep 2008 Posts: 6
|
Posted: Tue Sep 23, 2008 4:48 am Post subject: log own messages |
|
|
I'm trying to write a tcl script that, besides sending text to a channel, also logs that same text to the channel's logfile
I just need a simple code, something like:
putserv "PRIVMSG #mychan :hello"
putlog #mychan "hello"
can someone post the correct syntax for the putlog (or putcmdlog or putxferlog or putloglev, whichever works best) command for the example above _________________ Driber.net webmaster |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Sep 23, 2008 12:58 pm Post subject: |
|
|
putlog <message>
In your case, something like this:
| Code: | puthelp "PRIVMSG #mychan :hello"
putlog "#mychan \"hello\"" |
That is, you must make sure the message is a single argument, regardless whether it contains spaces or not. To have greater control of where things are logged, use the putloglev command; putloglev <level> <channel> <text>:
| Code: | puthelp "PRIVMSG #mychan :hello"
putloglev p "#mychan" "<mybot> hello"
#log the message "<mybot> hello" as public chatter (p) on channel #mychan |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Driber Voice
Joined: 18 Sep 2008 Posts: 6
|
Posted: Thu Sep 25, 2008 3:41 am Post subject: |
|
|
| Code: | | putloglev p "#mychan" "<mybot> hello" |
thanks, nml375, that works perfect _________________ Driber.net webmaster |
|
| Back to top |
|
 |
|