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

	<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>2020-11-18T16:31:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[haferbrei]]></name></author>
		<updated>2020-11-18T16:31:57-04:00</updated>

		<published>2020-11-18T16:31:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109193#p109193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109193#p109193"/>
		<title type="html"><![CDATA[Searching File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109193#p109193"><![CDATA[
I have solved it so similar <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=12860">haferbrei</a> — Wed Nov 18, 2020 4:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-11-11T17:38:16-04:00</updated>

		<published>2020-11-11T17:38:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109158#p109158</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109158#p109158"/>
		<title type="html"><![CDATA[Re: Searching File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109158#p109158"><![CDATA[
<blockquote class="uncited"><div>Is there a script where eggdrop looks for a file in a directory?<br>Something like !search Name</div></blockquote>This is VERY rudimentary.   There ought to be lots of things that can be done, to improve it.    It just depends on what you are trying to do.<br><div class="codebox"><p>Code: </p><pre><code># November 11, 2020## http://forum.egghelp.org/viewtopic.php?p=109154&amp;sid=af6ef787512bdf9d5d1f0ea3be3949e7#109154###############bind pub n "!search" filesearch###proc filesearch {nick uhost handle chan text} {        if {![llength [split $text]]} {                putserv "privmsg $chan :Syntax: !search path/filename  (can contain wildcards) "                return 0        }        putserv "privmsg $chan :[glob [lindex [split $text] 0 ] ] "}###</code></pre></div>Something like this is not limited in the code, as to where the user might search.   Thus, the bind is flagged for use only by bot owner.    Before you change that to something lesser, give it some thought.<br><br>Reference:<br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/glob.htm" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/glob.htm</a><br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/contents.htm</a><br><br>Have fun with it.   I hope that gets you started.<br><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=10420">willyw</a> — Wed Nov 11, 2020 5:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-11-11T10:52:19-04:00</updated>

		<published>2020-11-11T10:52:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109154#p109154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109154#p109154"/>
		<title type="html"><![CDATA[Searching File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109154#p109154"><![CDATA[
haferbrei, tried looking in the TclArchive ?<br><br>If not, i'll point you to the right direction.<br><br><a href="http://tclarchive.org/search.php?Server" class="postlink">http://tclarchive.org/search.php?Server</a><br><br>try looking through that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Wed Nov 11, 2020 10:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[haferbrei]]></name></author>
		<updated>2020-11-11T10:39:40-04:00</updated>

		<published>2020-11-11T10:39:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109152#p109152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109152#p109152"/>
		<title type="html"><![CDATA[Searching File]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109152#p109152"><![CDATA[
Is there a script where eggdrop looks for a file in a directory?<br>Something like !search Name<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12860">haferbrei</a> — Wed Nov 11, 2020 10:39 am</p><hr />
]]></content>
	</entry>
	</feed>
