Mercurial > hg > egg-tcls
changeset 550:85fe3bc36307
Rename *_logmsg settings to *_log_enable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 08 Jul 2020 22:55:56 +0300 |
parents | c6f389bef58e |
children | 77a8fab2062f |
files | config.feeds.example config.quotedb.example config.weather.example feeds.tcl quotedb.tcl ruoka.tcl weather.tcl |
diffstat | 7 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/config.feeds.example Wed Jul 08 17:09:07 2020 +0300 +++ b/config.feeds.example Wed Jul 08 22:55:56 2020 +0300 @@ -77,7 +77,7 @@ # 1 = Enable logging of various script actions into bot's log # 0 = Don't. -set feeds_logmsg 1 +set feeds_log_enable 1 # What IRC "command" should we use to send messages:
--- a/config.quotedb.example Wed Jul 08 17:09:07 2020 +0300 +++ b/config.quotedb.example Wed Jul 08 22:55:56 2020 +0300 @@ -79,7 +79,7 @@ # 1 = Enable logging of various script actions into bot's log # 0 = Don't. -set qdb_logmsg 1 +set qdb_log_enable 1 # What IRC "command" should we use to send messages:
--- a/config.weather.example Wed Jul 08 17:09:07 2020 +0300 +++ b/config.weather.example Wed Jul 08 22:55:56 2020 +0300 @@ -46,7 +46,7 @@ # 1 = Enable logging of various script actions into bot's log # 0 = Don't. -set weather_logmsg 1 +set weather_log_enable 1 # What IRC "command" should we use to send messages:
--- a/feeds.tcl Wed Jul 08 17:09:07 2020 +0300 +++ b/feeds.tcl Wed Jul 08 22:55:56 2020 +0300 @@ -35,8 +35,8 @@ # ------------------------------------------------------------------------ proc feeds_log {umsg} { - global feeds_logmsg feeds_name - if {$feeds_logmsg != 0} { + global feeds_log_enable feeds_name + if {$feeds_log_enable != 0} { putlog "$feeds_name: $umsg" } }
--- a/quotedb.tcl Wed Jul 08 17:09:07 2020 +0300 +++ b/quotedb.tcl Wed Jul 08 22:55:56 2020 +0300 @@ -42,8 +42,8 @@ #------------------------------------------------------------------------- proc qdb_log {arg} { - global qdb_logmsg qdb_name - if {$qdb_logmsg != 0} { + global qdb_log_enable qdb_name + if {$qdb_log_enable != 0} { putlog "$qdb_name: $arg" } }
--- a/ruoka.tcl Wed Jul 08 17:09:07 2020 +0300 +++ b/ruoka.tcl Wed Jul 08 22:55:56 2020 +0300 @@ -22,7 +22,7 @@ set ruoka_threshold 15 # Yleiset asetukset -set ruoka_logmsg 1 +set ruoka_log_enable 1 set ruoka_preferredmsg "PRIVMSG" @@ -45,8 +45,8 @@ #------------------------------------------------------------------------- proc ruoka_log {arg} { - global ruoka_logmsg ruoka_name - if {$ruoka_logmsg != 0} { + global ruoka_log_enable ruoka_name + if {$ruoka_log_enable != 0} { putlog "$ruoka_name: $arg" } }
--- a/weather.tcl Wed Jul 08 17:09:07 2020 +0300 +++ b/weather.tcl Wed Jul 08 22:55:56 2020 +0300 @@ -34,8 +34,8 @@ #------------------------------------------------------------------------- proc weather_log {arg} { - global weather_logmsg weather_name - if {$weather_logmsg != 0} { + global weather_log_enable weather_name + if {$weather_log_enable != 0} { putlog "$weather_name: $arg" } }