<?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/8682" />

	<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>2004-11-30T13:37:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[PLUGGER]]></name></author>
		<updated>2004-11-30T13:37:55-04:00</updated>

		<published>2004-11-30T13:37:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43307#p43307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43307#p43307"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43307#p43307"><![CDATA[
actually i have sussed it<br><br><br>looks like it conflicts with eddie script, cause as soon as you take that out it works fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2277">PLUGGER</a> — Tue Nov 30, 2004 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-11-30T02:34:04-04:00</updated>

		<published>2004-11-30T02:34:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43295#p43295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43295#p43295"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43295#p43295"><![CDATA[
<blockquote class="uncited"><div>aww  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> don't get yer panties in a bunch.  If all you wanted was a kickass stats script, you shoulda said so  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><a href="http://www.visions-of-fantasy.de/stats.mod/" class="postlink">stats module - put mirc to shame</a>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>pisg owns all <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br><a href="http://pisg.sourceforge.net/" class="postlink">http://pisg.sourceforge.net/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Nov 30, 2004 2:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-11-29T15:08:58-04:00</updated>

		<published>2004-11-29T15:08:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43271#p43271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43271#p43271"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43271#p43271"><![CDATA[
its probly using the time proc from compat.tcl<br>just replace with [strftime "%H:%M"]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Mon Nov 29, 2004 3:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-29T14:53:55-04:00</updated>

		<published>2004-11-29T14:53:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43270#p43270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43270#p43270"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43270#p43270"><![CDATA[
well at least have your bot open the log <strong class="text-strong">once</strong> and then periodically [flush] queued logged stuff<br><br>and there is no need to use mIRC-style logging - unless of course your parsing tools (those you use to create the webpage) depend on this<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 29, 2004 2:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-11-29T14:52:11-04:00</updated>

		<published>2004-11-29T14:52:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43269#p43269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43269#p43269"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43269#p43269"><![CDATA[
aww  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> don't get yer panties in a bunch.  If all you wanted was a kickass stats script, you shoulda said so  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><a href="http://www.visions-of-fantasy.de/stats.mod/" class="postlink">stats module - put mirc to shame</a>  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Nov 29, 2004 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PLUGGER]]></name></author>
		<updated>2004-11-29T14:33:08-04:00</updated>

		<published>2004-11-29T14:33:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43266#p43266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43266#p43266"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43266#p43266"><![CDATA[
ok, thanks for the enlightenment demond, any other text logging suggestions....<br><br><br>all i am doing is creating a stats page<br><br>i.e.<br><br><a href="http://snakehouse.no-ip.info/ircstats/snakehousestats.html" class="postlink">http://snakehouse.no-ip.info/ircstats/s ... stats.html</a><br><br><br><br>so something i can run that against a logged text file basically<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2277">PLUGGER</a> — Mon Nov 29, 2004 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-29T14:26:36-04:00</updated>

		<published>2004-11-29T14:26:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43265#p43265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43265#p43265"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43265#p43265"><![CDATA[
this script uses the [time] command incorrectly, with no args, whereas it requires at least one arg (command); so I wonder how has it been running at all... or maybe you run other scripts that redefine the [time] command<br><br>the whole thing is rather inefficent, opening/closing files on potentially fast paced irc events... would recommend against using it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 29, 2004 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PLUGGER]]></name></author>
		<updated>2004-11-29T14:02:44-04:00</updated>

		<published>2004-11-29T14:02:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43263#p43263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43263#p43263"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43263#p43263"><![CDATA[
<blockquote class="uncited"><div>it would really help if you just stated what you wish your tcl to do, instead of trying to hack some <em class="text-italics">inferior</em> mirc script... or at least post us the procedures that are erroring {<em class="text-italics">mirc_join, mirc_mode, mirc_topic</em>}, or  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> hey, maybe you could post the <span style="text-decoration:underline">whole</span> thing...?<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote><br>can i have some of what your smokin m8<br><br><br>i thought it was pretty self explanatory. the script is called mirclog.tcl.<br><br>its NOT a mirc script, its an eggdrop tcl script, so im not trying to hack anything<br><br>just get it working<br><br>if you have no idea to my questions, then fair enough just dont post a reply, or dont say anything... i thought i was posting my query in the right section on the right forum<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2277">PLUGGER</a> — Mon Nov 29, 2004 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-11-29T09:21:54-04:00</updated>

		<published>2004-11-29T09:21:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43246#p43246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43246#p43246"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43246#p43246"><![CDATA[
it would really help if you just stated what you wish your tcl to do, instead of trying to hack some <em class="text-italics">inferior</em> mirc script... or at least post us the procedures that are erroring {<em class="text-italics">mirc_join, mirc_mode, mirc_topic</em>}, or  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"> hey, maybe you could post the <span style="text-decoration:underline">whole</span> thing...?<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Nov 29, 2004 9:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[PLUGGER]]></name></author>
		<updated>2004-11-29T13:58:52-04:00</updated>

		<published>2004-11-29T03:14:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43238#p43238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43238#p43238"/>
		<title type="html"><![CDATA[error in mirclog.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43238#p43238"><![CDATA[
i have been running this on an eggdrop for months without any problems..<br><br>i wasnt sure about posting the whole god damn file (didnt want to use up too much space on here) but seen as you asked here is the whole mirclog.tcl<br><div class="codebox"><p>Code: </p><pre><code># mIRC style logging# Created by Kenny of PSdNetworks# http://kenny.psdnetworks.co.uk/# http://www.psdnetworks.co.uk/# kenny@psdnetworks.co.uk## Very simple operation. Channels are logged as soon as the bot joins them. No addition of channels# to extra files or configurations is required.## Configuration options:##   set mirc_path#       ^ The directory to store the log files in. This is the relative path from the bot's ~/ or#         an absolute path.##   set mirc_stripsign#       ^ Strip the first character from the channel name?#         Set to "0" to keep the whole name#         Set to "1" to strip the first character#         Examples:#           Stripping off: "#psdnetworks" would become "#psdnetworks.log"#           Stripping on:  "#psdnetworks" would become "psdnetworks.log"##   set mirc_ext#       ^ This is the extension to give the filenames#         Examples:#           set mirc_ext ".chanlog" - #mychannel would be logged to #mychannel.chanlog#           set mirc_ext ".log"     - #mychannel would be logged to #mychannel.log#           set mirc_ext ".abc"     - #mychannel would be logged to #mychannel.abc##set mirc_path "/home/unrealircd/bots/constrictorbot/logs/mircstatlog/"set mirc_stripsign "1"set mirc_ext "constrictor.log"### NOTE: Channels containing the "-" character will have "-" converted to "_"#       Example: #my-channel would be logged to something like #my_channel.log## -- END OF CONFIGURATION --#proc mirc_privmsg {nick host handle channel text} { mirc_log "PRIVMSG" $channel $nick $host "" "$text" }proc mirc_join {nick host handle channel} { mirc_log "JOIN" $channel $nick $host "" "" }proc mirc_quit {nick host handle channel reason} { mirc_log "QUIT" $channel $nick $host "" "$reason" }proc mirc_topic {nick host handle channel topic} { mirc_log "TOPIC" $channel $nick $host "" "$topic" }proc mirc_kick {nick host handle channel target reason} { mirc_log "KICK" $channel $nick $host $target "$reason" }proc mirc_nick {nick host handle channel newnick} { mirc_log "NICK" $channel $nick $host "" "$newnick" }proc mirc_mode {nick host handle channel change victim} { mirc_log "MODE" $channel $nick $host $victim "$change" }proc mirc_part {nick host handle channel partmsg} { mirc_log "PART" $channel $nick $host "" "$partmsg" }proc mirc_action {nick host handle channel keyword text} { mirc_log "ACTION" $channel $nick $host "" "$text" }proc mirc_stamp {min hour day month year} {  global mirc_path mirc_stripsign mirc_ext  foreach channel [channels] {    set chanfile $channel    while {"[string match *-* $chanfile]" &gt; "0"} { regsub "\\\-" $chanfile "_" chanfile }    if {"$mirc_stripsign" == "0"} { set mirc_filename "[string tolower $chanfile]" } else { set mirc_filename "[string range [string tolower $chanfile] 1 end]" }    set logID [open $mirc_path$mirc_filename$mirc_ext a]    puts $logID "Session Time: [ctime [unixtime]]"    close $logID  }}proc mirc_log {event channel nick host target details} {  global botnick mirc_path mirc_stripsign mirc_ext  if {"$channel" != "$botnick"} {    set chanfile $channel    while {"[string match *-* $chanfile]" &gt; "0"} { regsub "\\\-" $chanfile "_" chanfile }    set mirc_line "\[[time]\]"    if {"$mirc_stripsign" == "0"} { set mirc_filename "[string tolower $chanfile]" } else { set mirc_filename "[string range [string tolower $chanfile] 1 end]" }    if {"$event" == "PRIVMSG"} { set mirc_line "$mirc_line \&lt;$nick\&gt; $details" }    if {"$event" == "JOIN"} { if {"$botnick" == "$nick"} {    if {![file exists $mirc_path$mirc_filename$mirc_ext]} {        set logID [open $mirc_path$mirc_filename$mirc_ext w]        putlog "Starting a new logfile for $channel"        puts $logID "Session Start: [ctime [unixtime]]"      } else {        set logID [open $mirc_path$mirc_filename$mirc_ext a]        putlog "Continuing logfile for $channel"        puts $logID "Session Time: [ctime [unixtime]]"      }      puts $logID "\[[time]\] *** Now talking in $channel"      set mirc_line ""      close $logID    } else { set mirc_line "$mirc_line *** $nick ($host) has joined $channel" } }    if {"$event" == "QUIT"} { set mirc_line "$mirc_line *** $nick ($host) Quit ($details)" }    if {"$event" == "TOPIC"} { if {"$nick" == "*"} { set mirc_line "$mirc_line *** Topic is '$details'" } else { set mirc_line "$mirc_line *** $nick changes topic to '$details'" } }    if {"$event" == "KICK"} { if {"$target" == "$botnick"} { set mirc_line "$mirc_line *** You were kicked by $nick ($details)" } else { set mirc_line "$mirc_line *** $target was kicked by $nick ($details)" } }    if {"$event" == "NICK"} { set mirc_line "$mirc_line *** $nick is now known as $details" }    if {"$event" == "MODE"} { set mirc_line "$mirc_line *** $nick sets mode: $details $target" }    if {"$event" == "PART"} { set mirc_line "$mirc_line *** $nick ($host) has left $channel" }    if {"$event" == "ACTION"} { set mirc_line "$mirc_line * $nick $details" }    if {![file exists $mirc_path$mirc_filename$mirc_ext]} {      set logID [open $mirc_path$mirc_filename$mirc_ext w]      puts $logID "Session Start: [ctime [unixtime]]"      puts $logID "\[[time]\] *** Now talking in $channel"    } else { set logID [open $mirc_path$mirc_filename$mirc_ext a] }    if {"$mirc_line" != ""} { puts $logID "$mirc_line" }    close $logID  }}bind pubm - * mirc_privmsgbind join - * mirc_joinbind sign - * mirc_quitbind topc - * mirc_topicbind kick - * mirc_kickbind nick - * mirc_nickbind mode - * mirc_modebind part - * mirc_partbind ctcp - "ACTION" mirc_actionbind time - "00 00 * * *" mirc_stampbind time - "00 06 * * *" mirc_stampbind time - "00 12 * * *" mirc_stampbind time - "00 18 * * *" mirc_stampputlog "fuzzled: mIRC Logger"</code></pre></div>does anyone know if i can run it on another eggdrop at the same time in a different #room.. because what ever i try the bot just throws me an error in the partyline and doesnt log any text in that room<br><br>the errors<br><blockquote class="uncited"><div>[07:14] -NickServ (<a href="mailto:services@snakehouse.no-ip.info">services@snakehouse.no-ip.info</a>)- This nickname is registered and protected.  If it is your<br>[07:14] -NickServ (<a href="mailto:services@snakehouse.no-ip.info">services@snakehouse.no-ip.info</a>)- nick, type /msg NickServ IDENTIFY password.  Otherwise,<br>[07:14] -NickServ (<a href="mailto:services@snakehouse.no-ip.info">services@snakehouse.no-ip.info</a>)- please choose a different nick.<br>[07:14] -NickServ (<a href="mailto:services@snakehouse.no-ip.info">services@snakehouse.no-ip.info</a>)- Password accepted - you are now recognized.<br>[07:14] Tcl error [mirc_join]: no value given for parameter "nick" to "time"<br>[07:14] |ACCbot| joined #constrictors.<br>[07:14] Tcl error [mirc_topic]: no value given for parameter "nick" to "time"<br>[07:14] #constrictors: mode change '+o |ACCbot|' by ChanServ!<a href="mailto:services@snakehouse.no-ip.info">services@snakehouse.no-ip.info</a><br>[07:14] Tcl error [mirc_mode]: no value given for parameter "nick" to "time"<br>[07:15] @#constrictors (+trn) : [m/2 o/1 h/0 v/0 n/1 b/0 e/- I/-]</div></blockquote><br>there are quite a few tcl errors there<br><br>now this is no different except the room and the data path to the other bot running the same script<br><br>bot 1  runns on this config floorlessly<div class="codebox"><p>Code: </p><pre><code>set mirc_path "/home/unrealircd/bots/sabrina/logs/mircstatlog/"set mirc_stripsign "1"set mirc_ext "snakehouse.log"</code></pre></div>and bot 2 runs this config   with the above errors<div class="codebox"><p>Code: </p><pre><code>set mirc_path "/home/unrealircd/bots/constrictorbot/logs/mircstatlog/"set mirc_stripsign "1"set mirc_ext "constrictor.log"</code></pre></div>anyone any ideas<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2277">PLUGGER</a> — Mon Nov 29, 2004 3:14 am</p><hr />
]]></content>
	</entry>
	</feed>
