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

	<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-04-15T04:07:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2004-04-15T04:07:36-04:00</updated>

		<published>2004-04-15T04:07:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35537#p35537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35537#p35537"/>
		<title type="html"><![CDATA[Problem with Pisg.tcl and channel name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35537#p35537"><![CDATA[
since the tcl have both public and dcc fonctions i`m not sure where to look and how to manage to add the " / " so i`ll paste here the tcl and if somebody can help me and put me on the right track it will be appreciate<br><div class="codebox"><p>Code: </p><pre><code># pisg-0.5.tcl by soroh (Last Updated: December 20th, 2003)## Usage:#   type .pisg in a channel or dcc chat to manually update#   otherwise, at 00:00, 06:00, 12:00 and 18:00 it will#   will automatically update the stats page.## This script works by executing $pisgpath -co $pisgconfig## Pisg stats automaker and trigger-based stats updating.# Based off of ircstats.tcl by Caramel &lt;mmm_caramel@hotmail.com&gt;## Pisg can be found at: http://pisg.sourceforge.net## Please stop by on IRC if you find a bug, or want to request a feature or something.# Odds are I won't help you set it up, so don't waste my time..:)## IRC: irc.enterthegame.com #fiend# - soroh# Please stop by and say hello/idle if you're using it.. the more the merrier.## README# ------# Your pisg.cfg file must output parsed log files in the format of #fiend -&gt; fiend.html# unless you modify the code, of course.## VERSION HISTORY# ---------------# 0.5:- semi-overhaul of code#- added in ftp support#- easier to configure# 0.4:- found a bug about faulty pisg configs, see Notes portion of this header#- changed command character to ! or . -- I wouldn't mind seeing all TCL#  coders follow this format really. ! *and* . is teh win.#- fixed pisg_manstats (which is now pisg_dccstats)#- changed the binds to m|m in case some op decides to !pisg;!pisg;!pisg..## 0.3:- this was a flop, I discontinued and deleted all (little) work on it.## 0.2:  - fixed a bug with multiple channels, no longer uses two vars for#  messaging. everything appears to work fine now.## 0.1:  - initial release## TODO# ----# - !pisg #channel/channel to update a singular channel## NOTES# -----# - if your pisg config file has an error in it, this script can malfunction..#   so please test your configs. :)## versionset pisgversion "0.5"# you can use .pisg or !pisgset pisgcmdchar "!"set pisgaltchar "."# path to pisg binary/executable *must be valid*set pisgpath "/usr/home/aidemoi/aidemoi/pisg/pisg"# path to pisg config *must be valid*set pisgconfig "/usr/home/aidemoi/aidemoi/pisg/pisg.cfg"# set to the channels you WANT to have the bot message (do NOT include the # sign)set pisgchan "aide-moi.net"# the bindsbind dcc m|m pisg pisg_dccstatsbind pub m|m [string trim $pisgcmdchar]pisg pisg_manstatsbind pub m|m [string trim $pisgaltchar]pisg pisg_manstats# automagic updating - every 6 hours by default#            MM HH D M Ybind time - "00 00 * * *" pisg_statsbind time - "00 06 * * *" pisg_statsbind time - "00 12 * * *" pisg_statsbind time - "00 18 * * *" pisg_stats# url where files will be hosted (without the filename, no trailing /)set pisg_url "http://aide-moi.net/pisg"# messages to display# note: don't include the *filename* in here.. it will be tacked on to the end (no trailing /)# $pisg_url will become $pisg_url/file.html after the script parses it, so include it somewhere# in the configuration of your messages below.# The URL to the files will come at the *END* of the messages below. (unless you modify the script)# If you want to position the URL at the beginning, grep around for $pisg_newurlset pisg_manmsg "Update manuel des statistiques / Manually updating channel stats :: "set pisg_automsg "Update automatique des statistiques en cours / Updating channel stats automatically :: "# ftp configuration# pisg_useftp is either 1 or .. it's off.# pisg_localdir should be a full path, without trailing /set pisg_useftp "1"set pisg_server "onyx2.ows.ch"set pisg_user "f206466"set pisg_pass "PvzIOrMV"set pisg_localdir "/usr/home/aidemoi/aidemoi/"set pisg_remotedir "/pisg"####  END OF CONFIGURATION  ##### Sendftp v1.01 (12/6/97) by Ernst &lt;ernst@studbox.uni-stuttgart.de&gt;# Ernst's eggdrop page:  http://www.sodre.net/ernst/eggdrop/ (defunct)## modified by soroh: only removed pingcheck portion, and changed the proc name# in case users already had sendftp.tcl loaded, as well as aligned the code.proc pisg_sendftp { localfile server user pass remotefile } {  global pingcheck  if {![file exist $localfile]} {    return "sendftp: File $localfile does not exist."  }  set noftp [catch {set ftpprog [exec which ftd]}]  if {$noftp} {    if {[file executable /usr/bin/ftp]} {      set ftpprog /usr/bin/ftp      set noftp 0    }    if {[file executable /bin/ftp]} {      set ftpprog /bin/ftp      set noftp 0    }  }  if {$noftp} { return "sendftp: You don't seem to have the 'ftp' tool" }  set pipe [open "|$ftpprog -n $server" w]  puts $pipe "user $user $pass"  puts $pipe "bin"  puts $pipe "put $localfile $remotefile"  puts $pipe "quit"  close $pipe  return 1}# used for auto-creation and public !pisg messagesproc pisg_stats {min hour day month year} {  global pisgpath pisgconfig pisgchan  global pisg_localdir pisg_remotedir pisg_server pisg_user pisg_pass pisgversion pisg_useftp pisg_automsg pisg_url  putlog "pisg-$pisgversion: Channel Stats Generating.. please wait."  exec $pisgpath -co $pisgconfig  foreach pisgc [string tolower $pisgchan] {    set pisg_filename "$pisgc.html"    set pisg_newurl "$pisg_url/$pisg_filename"    if {$pisg_useftp == 1} {      set pisg_localfile "$pisg_localdir/$pisg_filename"      set pisg_remotefile "$pisg_remotedir/$pisg_filename"      pisg_sendftp $pisg_localfile $pisg_server $pisg_user $pisg_pass $pisg_remotefile    }    puthelp "PRIVMSG \#$pisgc :$pisg_automsg $pisg_newurl"  }}# used for public-messagesproc pisg_manstats {min hour day month year} {  global pisgpath pisgconfig pisgchan  global pisg_localdir pisg_remotedir pisg_server pisg_user pisg_pass pisgversion pisg_useftp pisg_manmsg pisg_url  putlog "pisg-$pisgversion: Channel Stats Generating.. please wait."  exec $pisgpath -co $pisgconfig  foreach pisgc [string tolower $pisgchan] {    set pisg_filename "$pisgc.html"    set pisg_newurl "$pisg_url/$pisg_filename"    if {$pisg_useftp == 1} {      set pisg_localfile "$pisg_localdir/$pisg_filename"      set pisg_remotefile "$pisg_remotedir/$pisg_filename"      pisg_sendftp $pisg_localfile $pisg_server $pisg_user $pisg_pass $pisg_remotefile    }    puthelp "PRIVMSG \#$pisgc :$pisg_manmsg $pisg_newurl"  }}# used for the partyline (dcc chat)proc pisg_dccstats {handle ipx arg} {  global pisgpath pisgconfig pisgchan  global pisg_localdir pisg_remotedir pisg_server pisg_user pisg_pass pisgversion pisg_useftp pisg_manmsg pisg_url  putlog "pisg-$pisgversion: Channel Stats Generating.. please wait."  exec $pisgpath -co $pisgconfig  foreach pisgc [string tolower $pisgchan] {    set pisg_filename "$pisgc.html"    set pisg_newurl "$pisg_url/$pisg_filename"    if {$pisg_useftp == 1} {      set pisg_localfile "$pisg_localdir/$pisg_filename"      set pisg_remotefile "$pisg_remotedir/$pisg_filename"      pisg_sendftp $pisg_localfile $pisg_server $pisg_user $pisg_pass $pisg_remotefile    }    puthelp "PRIVMSG \#$pisgc :$pisg_manmsg $pisg_newurl"  }}</code></pre></div>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Thu Apr 15, 2004 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-04-15T03:55:51-04:00</updated>

		<published>2004-04-15T03:55:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35536#p35536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35536#p35536"/>
		<title type="html"><![CDATA[Problem with Pisg.tcl and channel name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35536#p35536"><![CDATA[
I'm affraid you're right about the error: the "-moi.net" is considered as an argument.<br>Peharps you may escape it by editing the tcl to add a slash before the "-" and the dot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Apr 15, 2004 3:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2004-04-14T05:48:54-04:00</updated>

		<published>2004-04-14T05:48:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35509#p35509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35509#p35509"/>
		<title type="html"><![CDATA[Problem with Pisg.tcl and channel name]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35509#p35509"><![CDATA[
I use pisg.tcl for generating stats from my irc channels but i have a weird problem and i dont understand why.<br><br>i use 2 different eggdrop on two different channel , the first eggdrop everything works fine on channel  " #channel1" but with the second eggdrop pisg.tcl seems to hang while he generate stats and the only reason i found is that the channel name may cause problem since it contains a "-" and a "." ( channel is #aide-moi.net )<br><br>heres what i saw in PL while trying to generate stats <div class="codebox"><p>Code: </p><pre><code>[05:03] (Pitchat): .pisg&lt;Aide-Moi&gt; [05:04] pisg-0.5: Channel Stats Generating.. please wait.&lt;Aide-Moi&gt; [05:04] Tcl error [pisg_dccstats]: pisg v0.53 - Perl IRC Statistics Generator[05:03] (Aide-Moi):[05:03] (Aide-Moi): Using config file: /usr/home/aidemoi/aidemoi/pisg/pisg.cfg[05:03] (Aide-Moi):[05:03] (Aide-Moi): Using language template: FR[05:03] (Aide-Moi):[05:03] (Aide-Moi): Statistics for channel #aide-moi.net @ Undernet by Aide-Moi[05:03] (Aide-Moi):[05:03] (Aide-Moi): Going into /usr/home/aidemoi/aidemoi/mel/logs/ and parsing all files there...[05:03] (Aide-Moi):[05:03] (Aide-Moi): Analyzing log(/usr/home/aidemoi/aidemoi/mel/logs/aide-moi.net.log) in 'mIRC' format...[05:03] (Aide-Moi): Finished analyzing log, 31 days total.[05:03] (Aide-Moi): C</code></pre></div>any ideas ?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Wed Apr 14, 2004 5:48 am</p><hr />
]]></content>
	</entry>
	</feed>
