<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/21679" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2025-02-08T18:01:29-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/21679</id>

		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2025-02-08T18:01:29-04:00</updated>

		<published>2025-02-08T18:01:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113246#p113246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113246#p113246"/>
		<title type="html"><![CDATA[Re: [Solved] Error in logger.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113246#p113246"><![CDATA[
Thanks CrazyCat it works fine <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Sat Feb 08, 2025 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-02-08T08:11:19-04:00</updated>

		<published>2025-02-08T08:11:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113245#p113245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113245#p113245"/>
		<title type="html"><![CDATA[Re: Error in logger.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113245#p113245"><![CDATA[
This is because in many languages, any number begining with 08 (including 08 itself) is interpreted as an octal number.<br>Use <strong class="text-strong">strfitme "%e"</strong> rather than %d which adds a leading 0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Feb 08, 2025 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carlin0]]></name></author>
		<updated>2025-02-08T17:59:19-04:00</updated>

		<published>2025-02-08T05:19:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113244#p113244</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113244#p113244"/>
		<title type="html"><![CDATA[[Solved] Error in logger.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113244#p113244"><![CDATA[
the script<br><div class="codebox"><p>Code: </p><pre><code>#########################################################        Eggdrop Logger 2.0 - www.mircstats.com        ##        Logging in mIRC 6.17 format. 27/04/2006       ##                                                      ##   Make sure you have created the dir 'logger(dir)'   ##                                                      ##         Created by Lanze &lt;simon@freeworld.dk&gt;        ##         Improved by zowtar &lt;zowtar@gmail.com&gt;        ##                                                      ############################################################ Configuration#;;; Where the logs will be saved.set logger(dir) "logs/"#;;; Strip codes?#;;; 0 = save codes\colors#;;; 1 = no save codes\colorsset logger(strip) "1"#;;; Save by Day, Week, Month or Disable?set logger(time) "Month"# # # # # # # # # # # # # # # #   DO NOT CHANGE ANYTHING BELOW HERE   # # # # # # # # # # # # # # # #### Eventsbind join - "#* *!*@*" logger:joinbind part - "#* *!*@*" logger:partbind sign - "#* *!*@*" logger:quitbind pubm - "#* *" logger:textbind nick - "#* *" logger:nickbind kick - "#* *" logger:kickbind mode - "#* *" logger:modebind topc - "#* *" logger:topicbind raw - "333" logger:topic-authorbind ctcp - "ACTION" logger:action### Primary Commandsproc logger:join {nick uhost handle chan} {  global logger botnick  if {$nick == $botnick} {    set log "[open "$logger(dir)$chan.log" a]"    puts $log "\r"    puts $log "Session Start: [strftime "%a %b %d %T %Y"]\r"    puts $log "Session Ident: $chan\r"    puts $log "\[[strftime "%H:%M"]\] * Now talking in $chan\r"    close $log  } else {    logger:save $chan "* $nick ($uhost) has joined $chan"  }}proc logger:part {nick uhost handle chan msg} {  if {$msg == ""} {    logger:save $chan "* $nick ($uhost) has left $chan"  } else {    logger:save $chan "* $nick ($uhost) has left $chan ($msg)"  }}proc logger:quit {nick uhost handle chan reason} {  logger:save $chan "* $nick ($uhost) Quit ($reason)"}proc logger:text {nick uhost handle chan text} {  if {[isop $nick $chan] == "1"} {    set nick "@$nick"  } elseif {[ishalfop $nick $chan] == "1"} {    set nick "%$nick"  } elseif {[isvoice $nick $chan] == "1"} {    set nick "+$nick"  }  logger:save $chan "&lt;$nick&gt; $text"}proc logger:nick {nick uhost handle chan newnick} {  logger:save $chan "* $nick is now known as $newnick"}proc logger:kick {nick uhost handle chan target reason} {  logger:save $chan "* $target was kicked by $nick ($reason)"}proc logger:mode {nick uhost handle chan mode victim} {  logger:save $chan "* $nick sets mode: $mode $victim"}proc logger:topic {nick uhost handle chan topic} {  if {$nick == "*"} {    logger:save $chan "* Topic is '$topic'"  } else {    logger:save $chan "* $nick changes topic to '$topic'"  }}proc logger:topic-author {from keyword text} {  logger:save [lindex $text 1] "* Set by [lindex $text 2] on [strftime "%a %b %d %T" [lindex $text 3]]"}proc logger:action {nick uhost handle dest keyword text} {  if {[validchan $dest] == "1"} {    if {[isop $nick $dest] == "1"} {      set nick "@$nick"    } elseif {[ishalfop $nick $dest] == "1"} {      set nick "%$nick"    } elseif {[isvoice $nick $dest] == "1"} {      set nick "+$nick"    }    logger:save $dest "* $nick $text"  }}### Secondary Commandsproc logger:save {chan text} {  global logger  set log "[open "$logger(dir)$chan.log" a]"  puts $log "\[[strftime "%H:%M"]\] [logger:strip $text]\r"  close $log}### Tertiary Commandsproc logger:strip {text} {  global logger numversion  if {$logger(strip) == "1"} {    if {$numversion &gt;= "1061700"} {      set text "[stripcodes bcruag $text]"    } else {      regsub -all -- {\002,\003([0-9][0-9]?(,[0-9][0-9]?)?)?,\017,\026,\037} $text "" text    }  }  return $text}### Timeproc logger:time {} {  global logger  foreach bind [binds time] {    if {[string match "time * logger:time-save" $bind] == "1"} {      unbind time - "[lindex $bind 2]" logger:time-save    }  }  switch [string toupper $logger(time)] {    DAY {      bind time - "00 00 [strftime "%d" [expr [unixtime] + 86400]] * *" logger:time-save    }    WEEK {      bind time - "00 00 [strftime "%d" [expr [unixtime] + ((7 - [strftime "%w"]) * 86400)]] * *" logger:time-save    }    MONTH {      bind time - "00 00 01 [strftime "%m" [expr [unixtime] + ((32 - [strftime "%d"]) * 86400)]] *" logger:time-save    }  }}proc logger:time-save {minute hour day month year} {  global logger  foreach channel [channels] {    if {[file exists "$logger(dir)$channel.log"] == "1"} {      file rename -force "$logger(dir)$channel.log" "$logger(dir)${channel}_\[[strftime "%Y.%m.%d"]\].log"    }    set log "[open "$logger(dir)$channel.log" w]"    puts $log "\r"    puts $log "Session Start: [strftime "%a %b %d %T %Y"]\r"    puts $log "Session Ident: $channel\r"    puts $log "\[[strftime "%H:%M"]\] * Now talking in $channel\r"    close $log    putquick "TOPIC $channel"  }  logger:time}logger:timeputlog "TCL Logger.tcl Loaded!"</code></pre></div>the error<br><div class="codebox"><p>Code: </p><pre><code>Tcl error in file 'lurk':invalid bareword "08"in expression "1739004974 + ((32 - 08) * 86400)";should be "$08" or "{08}" or "08(...)" or ... (invalid octal number?)    (parsing expression "1739004974 + ((32 - 08...")    invoked from within"expr [unixtime] + ((32 - [strftime "%d"]) * 86400)"    (procedure "logger:time" line 16)    invoked from within"logger:time"    (file "scripts/logger.tcl" line 184)    invoked from within"source scripts/logger.tcl"    (file "lurk" line 639)* FILE DI CONFIGURAZIONE NON CARICATO (NON TROVATO, O ERRORE)</code></pre></div>thanks in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12778">Carlin0</a> — Sat Feb 08, 2025 5:19 am</p><hr />
]]></content>
	</entry>
	</feed>
