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

	<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>2003-03-10T05:38:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-03-10T05:38:24-04:00</updated>

		<published>2003-03-10T05:38:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17636#p17636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17636#p17636"/>
		<title type="html"><![CDATA[Whats wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17636#p17636"><![CDATA[
Lists have indexes that start at, and include 0.<br><br>The IF command, treats &lt;&gt; 0 as true, and only 0 as false.<br><br>Because list indexes starts at 0, a not found index, can't be 0, thus it uses "-1" as not found.<br><br>"-1" follows the &lt;&gt;0 system, thus is TRUE in the eyes of IF.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Mar 10, 2003 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-03-09T23:11:05-04:00</updated>

		<published>2003-03-09T23:11:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17631#p17631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17631#p17631"/>
		<title type="html"><![CDATA[Whats wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17631#p17631"><![CDATA[
Looks like some problems with lsearch and string match.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Mar 09, 2003 11:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-03-09T21:14:04-04:00</updated>

		<published>2003-03-09T21:14:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17629#p17629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17629#p17629"/>
		<title type="html"><![CDATA[Whats wrong?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17629#p17629"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag adrevenge bind pubm - "*#*" ad:rvng set adfloodprot 1 proc ad:rvng {n u h c a} {     global adfloodprot     if {$adfloodprot} {         if {[lsearch [channel info $c] +adrevenge]} {             set chan [lindex $a [lsearch $a #*]]             if {[lsearch [channels] $chan]==-1} {                 if {![string match -nocase #help*] &amp;&amp; ![string match -nocase #feds]} {                     channel add $chan                     set adrvng [list putserv "PRIVMSG $chan :Visit: $c \037(\037\002Advertise Revenge\002 from $n\037)\037"]    set adfloodprot 0   set partchan [list putserv "PART $chan \00314::\0037 $c \00314::\003"; channel remove $chan; set adfloodprot 1]  utimer 5 $adrvng   utimer 10 $partchan                 }                 }         }     }}putlog "\00303Advertise Revenge Loaded!"</code></pre></div>Whats wrong? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Sun Mar 09, 2003 9:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
