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

	<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>2008-02-12T17:17:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-02-12T17:17:15-04:00</updated>

		<published>2008-02-12T17:17:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80833#p80833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80833#p80833"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80833#p80833"><![CDATA[
@rpope904:<br>Error found and corrected, see my previous post.<br><br>@rosc:<br>If you do not feel like writing scripts to a commercial entity, that's your choice. But please refrain from making posts like the one above, as it really isn't helpful to anyone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Feb 12, 2008 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2008-02-12T16:29:26-04:00</updated>

		<published>2008-02-12T16:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80831#p80831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80831#p80831"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80831#p80831"><![CDATA[
<blockquote class="uncited"><div>@rosc:<br>I fail to see the relevance of your comment...</div></blockquote>Just the point of asking for free work for a commercial enterprise..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Feb 12, 2008 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-12T16:23:08-04:00</updated>

		<published>2008-02-12T16:23:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80830#p80830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80830#p80830"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80830#p80830"><![CDATA[
Thanks for your help, I got this error with it: I've also tried to find out where it is..:<br><br>[14:45] &lt;x10Helper&gt; [14:45] Tcl error [pub_helped]: missing close-bracket<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Tue Feb 12, 2008 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-02-12T13:30:42-04:00</updated>

		<published>2008-02-12T13:30:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80827#p80827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80827#p80827"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80827#p80827"><![CDATA[
@rosc:<br>I fail to see the relevance of your comment...<br><br>@rpope904:<br>Something like this should do the trick, it is untested however, but I believe I've taken most precautions to prevent unauthorized access to the filesystem and sanitize any and all input data. Let me know how it works out..<br>This script assumes the helping op is added to your eggdrop's user database with op privileges.<div class="codebox"><p>Code: </p><pre><code>bind pub - "!helped" pub_helpedproc pub_helped {nick host hand chan text} { set data [split $text] set helper [lindex $data 0] if {[validuser [set h_hand [nick2hand $helper $chan]]] &amp;&amp; [matchattr $h_hand o|o]} {  set reason [join [lrange $data 1 end]]  set fid [open [file join "/home" "rpope904" "stafflogs" [file tail $h_hand]] "WRONLY APPEND CREAT"]  puts $fid "$nick was helped with $reason on [clock format [clock seconds]]"  close $fid } {  puthelp "PRIVMSG $nick :The nickname $helper was not recognized as an authorized op. Please check your data and try again." }}</code></pre></div>Edit:<br>Fixed minor typo, "missing close bracket".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Feb 12, 2008 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-11T20:43:24-04:00</updated>

		<published>2008-02-11T20:43:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80815#p80815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80815#p80815"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80815#p80815"><![CDATA[
its a free webhost, so I doubt they make much from it.. I do it just to pass time.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Mon Feb 11, 2008 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2008-02-11T18:34:00-04:00</updated>

		<published>2008-02-11T18:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80810#p80810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80810#p80810"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80810#p80810"><![CDATA[
Your company don't pay programmers?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Feb 11, 2008 6:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rpope904]]></name></author>
		<updated>2008-02-11T16:29:26-04:00</updated>

		<published>2008-02-11T16:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80807#p80807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80807#p80807"/>
		<title type="html"><![CDATA[Text files, or ideas?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80807#p80807"><![CDATA[
Basically, the eggdrop is used in a web hosting support channel, our ops are all staff members of the company, I need a script to kind of record when someone helps a user, as they have requirements to be met every week.. I need to somehow set it up to when a user types !helped &lt;nickname&gt; &lt;explanation&gt; the bot will check if the &lt;nickname&gt; is infact an op in the channel, and then append a text file for that user, in a directory, for this, i'll use /home/rpope904/stafflogs so, say the user typed !helped rpope904 Nameservers help<br><br>The bot would write to the file /home/rpope904/stafflogs/rpope904.txt:<br>&lt;Helped users nick&gt; was helped with NameServers Help on DATE / TIME.<br><br>Is this possible? Thanks. :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9680">rpope904</a> — Mon Feb 11, 2008 4:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
