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

	<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-03-11T14:33:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[to2]]></name></author>
		<updated>2008-03-11T14:33:04-04:00</updated>

		<published>2008-03-11T14:33:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81627#p81627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81627#p81627"/>
		<title type="html"><![CDATA[My PCW scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81627#p81627"><![CDATA[
the thing is that I have been given some help around in different irc channels, someone posted me a simple way of displaying text and that was obviously through http <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br>feel free to post "corrections" which will help! <br><br>and I will be using puthelp instead <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=9673">to2</a> — Tue Mar 11, 2008 2:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2008-03-11T14:19:12-04:00</updated>

		<published>2008-03-11T14:19:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81624#p81624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81624#p81624"/>
		<title type="html"><![CDATA[My PCW scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81624#p81624"><![CDATA[
Use puthelp instead of putserv, then it won't flood.  Also, since you're sending notices to the nick $n, the only thing to worry about is exceeding sendq, not necessarily channel flooding.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Tue Mar 11, 2008 2:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-03-11T13:31:01-04:00</updated>

		<published>2008-03-11T13:31:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81623#p81623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81623#p81623"/>
		<title type="html"><![CDATA[My PCW scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81623#p81623"><![CDATA[
Wait, if you access the file at "/home/to2/website/pw.txt", why do you use the http package?<br><br>That seems horribly silly to me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Mar 11, 2008 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[to2]]></name></author>
		<updated>2008-03-11T10:34:50-04:00</updated>

		<published>2008-03-11T10:34:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81619#p81619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81619#p81619"/>
		<title type="html"><![CDATA[My PCW scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81619#p81619"><![CDATA[
Hi all! the scripts is working great and all as for now. What I would like is some feedback on i.e. excess flood if the script is used to often and so on.<br><br><br>The script is used as follows:<br>Gamers seeking war and HAVE server use the !addpcw &lt;theis speccs&gt; command<br>Gamers seeking war WITHOUT server use "!listpcw" which will display the last 10 entrys to "!addpcw", using notice from my egg (this is where I an afraid of excess flood if the script is used very often)<br><br><br><br><br>First the "addpcw" script:<div class="codebox"><p>Code: </p><pre><code>set minkanal "#clan-war"bind pub - !addpcw addpcwmsgproc addpcwmsg {n u h c t} {######global minkanal if {[string tolower $c] != $minkanal} {    putserv "NOTICE $n : Join #Clan-War to get full use of the seek and add Clan-War features!"    return 0}###### set filename "/home/to2/website/pw.txt" set fid [open $filename "a"] puts $fid "$n: Have Server! $t" close $fid puthelp "NOTICE $n :Your PCW: &lt;Have Server! $t&gt; have been added."}</code></pre></div><br>and second the "listpcw" script:<div class="codebox"><p>Code: </p><pre><code>package require httpset minkanal "#clan-war"bind pub - !listpcw listplayersproc listplayers {n u h c t} {######global minkanalif {[string tolower $c] != $minkanal} {    putserv "NOTICE $n : Join #Clan-War to get full use of the seek and add Clan-War features!"    return 0}######set x [::http::geturl http://localhost/pw.txt]set lines [lrange [split [::http::data $x] \n] end-9 end]foreach e $lines {puthelp "NOTICE $n :$e"}::http::cleanup $x}</code></pre></div>Thanks in advance for all <em class="text-italics">useful</em> feedback! ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9673">to2</a> — Tue Mar 11, 2008 10:34 am</p><hr />
]]></content>
	</entry>
	</feed>
