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

	<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>2002-10-27T16:50:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-10-27T16:50:47-04:00</updated>

		<published>2002-10-27T16:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12479#p12479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12479#p12479"/>
		<title type="html"><![CDATA[Can someone help me debug this logic?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12479#p12479"><![CDATA[
right, so the ==1 isnt needed at all then. Thank you <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=1195">Weirdo</a> — Sun Oct 27, 2002 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-27T16:49:10-04:00</updated>

		<published>2002-10-27T16:49:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12478#p12478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12478#p12478"/>
		<title type="html"><![CDATA[Can someone help me debug this logic?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12478#p12478"><![CDATA[
???<br><br>[onchan ...] returns 1 or 0.<br><br>u can replace<br><br>if {[onchan ...] == 1} by if [onchan ... ] <br>if {[onchan ...} == 0} by if ![onchan ...]<p>Statistics: Posted by Guest — Sun Oct 27, 2002 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-10-27T16:00:48-04:00</updated>

		<published>2002-10-27T16:00:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12474#p12474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12474#p12474"/>
		<title type="html"><![CDATA[Can someone help me debug this logic?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12474#p12474"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> This enables the !nuke command - Requested by Quista - Version 4bind pub lomn !nuke pub:nukeproc pub:nuke {nick uhost hand chan text} {global runchan defreason2set kicknick [lindex [split $text] 0]set reason [lrange [split $text] 1 end]if {$reason == "" } {set reason $defreason2} if {[onchan $kicknick $chan] == 1 } {putcmdlog "!$hand! Nuked $kicknick in $chan"putserv "KICK $chan $kicknick :$reason" } {puthelp "Notice $nick :Unable to kick - Nickname does not correspond to channel user"}} </code></pre></div>Doing an update to my nuke script by adding the checking for a nick on channel. Problem is, no matter if:<br><br>onchan $kicknick $chan ==1 or != 1 it has the same result. Is this a problem with my logic, or with the code itself?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sun Oct 27, 2002 4:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
