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

	<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-02-10T04:57:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-02-10T04:57:22-04:00</updated>

		<published>2004-02-10T04:57:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33428#p33428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33428#p33428"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33428#p33428"><![CDATA[
Caesar, don't worry <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>We all make mistakes sometimes, our brains are working too much.<br>But we can't do anything against that, it's the trouble that know any genious <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=691">CrazyCat</a> — Tue Feb 10, 2004 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-09T15:45:07-04:00</updated>

		<published>2004-02-09T15:45:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33409#p33409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33409#p33409"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33409#p33409"><![CDATA[
I'm Grandpa now? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> I meant for myself that I sometimes tend to be lazy and screw up things.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 09, 2004 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-02-09T12:25:42-04:00</updated>

		<published>2004-02-09T12:25:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33395#p33395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33395#p33395"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33395#p33395"><![CDATA[
arcane, you're not fair....<br>remember that caesar is old and tired <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=691">CrazyCat</a> — Mon Feb 09, 2004 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-02-09T10:41:11-04:00</updated>

		<published>2004-02-09T10:41:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33382#p33382</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33382#p33382"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33382#p33382"><![CDATA[
<blockquote class="uncited"><div>lazy? his worked and yours didn't so I'd ask myself who is the lazy one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>i think he meant himself.<br><br>...at least i hope so <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>@caesar: hmm... how long ago is it that you read that topic about "using list commands on strings" last time? <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=2617">arcane</a> — Mon Feb 09, 2004 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-08T16:59:27-04:00</updated>

		<published>2004-02-08T16:59:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33350#p33350</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33350#p33350"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33350#p33350"><![CDATA[
lazy? his worked and yours didn't so I'd ask myself who is the lazy one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 08, 2004 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-08T16:41:12-04:00</updated>

		<published>2004-02-08T16:41:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33348#p33348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33348#p33348"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33348#p33348"><![CDATA[
lazy probably <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=187">caesar</a> — Sun Feb 08, 2004 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-08T08:27:51-04:00</updated>

		<published>2004-02-08T08:27:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33337#p33337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33337#p33337"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33337#p33337"><![CDATA[
thanks arcane - that works!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 08, 2004 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-02-08T08:08:00-04:00</updated>

		<published>2004-02-08T08:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33335#p33335</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33335#p33335"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33335#p33335"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [string tolower $url] "reuters"] != -1} {# it matches..}</code></pre></div></div></blockquote>why not using string match -nocase *reuters* ? isn't $url a string?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Sun Feb 08, 2004 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-08T05:49:54-04:00</updated>

		<published>2004-02-08T05:49:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33333#p33333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33333#p33333"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33333#p33333"><![CDATA[
sorry I mis-pasted the sample URL:<br><br><a href="http://abcnews.go.com/wire/World/reuters20040208_26.html" class="postlink">http://abcnews.go.com/wire/World/reuter ... 08_26.html</a><br><br>that one works...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 08, 2004 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-08T05:34:05-04:00</updated>

		<published>2004-02-08T05:34:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33332#p33332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33332#p33332"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33332#p33332"><![CDATA[
<blockquote class="uncited"><div>[11:31] (caesar): .tcl set url "foo bar reuters moo" ; if {[lsearch -exact [string tolower $url] "reuters"] != -1} { putlog "bla" }<br>[11:31] (Toy): [11:31] bla<br>[11:31] (Toy): Tcl:</div></blockquote>As you can see is working fine at me.. probably your $url is not good or something..<br><br>Also, I've tryed that link and got an "Sorry. This content is not available. We apologize for the inconvenience." msg from that page..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Feb 08, 2004 5:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-08T05:11:00-04:00</updated>

		<published>2004-02-08T05:11:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33330#p33330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33330#p33330"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33330#p33330"><![CDATA[
thanks caesar<br><br>it dosn't seem to be catching the word, and is returning the news in the 'else' format everytime even if reuters is in the URL...here's the part of the script:<br><br>    ### Compair the both hashes, announce news if they differ and create new datafile.<br>    if {$newhash != $oldhash} {<br>if {[lsearch -exact [string tolower $url] "reuters"] != -1} {<br>     abcmsg "4,4 1,15 [gettime -5]ET $title - Reuters "<br>abcmsg "4,4 0,14 » http://abcnews.go.com$url " <br>} else {<br>     abcmsg "4,4 1,15 [gettime -5]ET $title - AP "<br>abcmsg "4,4 0,14 » http://abcnews.go.com$url "<br>}<br>}<br><br>Here's an example of a url with the word in it:<br><a href="http://abcnews.go.com/wire/World/reuters20040208_93.html" class="postlink">http://abcnews.go.com/wire/World/reuter ... 08_93.html</a><br><br>that's the one I want it to send the first msgs in - if reuters isn't in it then I want it to send the other...<br><br>thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 08, 2004 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-02-08T03:22:01-04:00</updated>

		<published>2004-02-08T03:22:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33327#p33327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33327#p33327"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33327#p33327"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [string tolower $url] "reuters"] != -1} {# it matches..}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Feb 08, 2004 3:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2004-02-08T01:02:42-04:00</updated>

		<published>2004-02-08T01:02:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33324#p33324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33324#p33324"/>
		<title type="html"><![CDATA[isin / string match]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33324#p33324"><![CDATA[
Hi<br><br>I'm trying to modify a script so that if the word reuters is contained in $url it will msg the channel one thing and if not, another.<br><br>This is what I've come up with but I don't know if 'isin' is valid in TCL like it is in mIRC scripting...<br><br>if (reuters isin $url) {<br>puthelp "PRIVMSG $chan :12,12 1,15 $title - Reuters "<br>puthelp "PRIVMSG $chan :» http://abcnews.go.com$url" }<br>else {<br>puthelp "PRIVMSG $chan :12,12 1,15 $title - AP "<br>puthelp "PRIVMSG $chan :» http://abcnews.go.com$url" }<br><br>Thanks in advance...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Sun Feb 08, 2004 1:02 am</p><hr />
]]></content>
	</entry>
	</feed>
