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

	<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-10-05T15:01:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-05T15:01:05-04:00</updated>

		<published>2003-10-05T15:01:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27993#p27993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27993#p27993"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27993#p27993"><![CDATA[
okay <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> that was a good explanation, sorry for being so stuborn :p, I have a math test (irrational functions) tommorow, so I've got my mind mixed up with all the problems solving <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>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=3085">Sir_Fz</a> — Sun Oct 05, 2003 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-05T14:24:43-04:00</updated>

		<published>2003-10-05T14:24:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27990#p27990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27990#p27990"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27990#p27990"><![CDATA[
<blockquote class="uncited"><div>I know what they mean... but rationalizing them:<br><br>with || it means for example if $nick isn't voiced or oped then the proc will apply to him, but with &amp;&amp;, $nick must be NOT oped and NOT voiced, which means if he is oped but isnt voice or vise versa he won't be exempted.</div></blockquote>Sir_Fz.... with || the scenario will always be true.... This is because the person will never be BOTH opped and voiced.... <br><div class="codebox"><p>Code: </p><pre><code>if {![isop $nick $kickchan] || ![isvoice $nick $kickchan]} { </code></pre></div>In other terms... If Sir_Fz is not opped in #egghelp, or not voiced in #egghelp, then let's do the following code... See? <br><br>Analysis of ||:<br>First Scenario) If you are opped, you don't have to be voiced, which will make the code following the statement get triggered...<br>Second Scenario) If you are voiced, you don't have to be opped, which will make the code following the statement get triggered as well... <br>Third Scenario) If you don't have either voice or op status, the code following the statement will get triggered as well...<br><br>See? it is the same as having if {1} { ... this stuff will always get called ... }<br><br>That is why &amp;&amp; is needed... <div class="codebox"><p>Code: </p><pre><code>if {![isop $nick $kickchan] &amp;&amp; ![isvoice $nick $kickchan]} { </code></pre></div>In other terms, if Sir_Fz is not opped in #egghelp, and not voiced in #egghelp, then let's do the following code...<br><br>Analysis of &amp;&amp;:<br>First scenario) If you are opped, you don't satisfy the first (not opped) condition, so already the code following the statement must be <em class="text-italics">skipped</em> [which is what we want to happen, remember?]<br>Second scenario) If you are voiced, you satisfy the first (not opped) condition, but you don't satisfy the second (not voiced) condition, so the code following the statement must again be <em class="text-italics">skipped</em> [again, which is what we want to happen]<br>Third scenario) If you are neither opped or voiced, then you satisfy both conditions, thus the code following the statement <em class="text-italics">will</em> be executed...[which is truly what we want, as we only want the bot to react on these<br>typ of channel members, leaving ops and voiced users alone]<br><br>I don't know how else to explain it to you Sir_Fz... if you don't get this explanation, then I'm afraid you will never understand   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Oct 05, 2003 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BarkerJr]]></name></author>
		<updated>2003-10-05T13:39:37-04:00</updated>

		<published>2003-10-05T13:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27989#p27989</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27989#p27989"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27989#p27989"><![CDATA[
No, but just to be safe, you could make in {#}.  I always use {}'s around strings that I don't want Tcl to parse.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2933">BarkerJr</a> — Sun Oct 05, 2003 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-05T13:27:28-04:00</updated>

		<published>2003-10-05T13:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27985#p27985</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27985#p27985"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27985#p27985"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set spambantime 60set spamwords {  "\#"[snip]</code></pre></div></div></blockquote>I guess there's no need for the "" behind #<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Oct 05, 2003 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-10-05T11:59:20-04:00</updated>

		<published>2003-10-05T11:59:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27979#p27979</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27979#p27979"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27979#p27979"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set spambantime 60set spamwords {  "\#"  "join"  "channel"}bind msgm - * pv_kick proc pv_kick {nick uhost hand text} {   global botnick spamwords spambantime  foreach sw $spamwords {    if {[string match -nocase "*$sw*" "$text"]} {      foreach kickchan [channels] {         set kickchan [string tolower $kickchan]         if {[onchan $nick $kickchan]} {              if {(![isop $nick $kickchan]) &amp;&amp; (![isvoice $nick $kickchan])} {             set bmask "*!*[string range $uhost [string first "@" $uhost] end]"             if {(![ischanban $bmask $kickchan]) &amp;&amp; ([botisop $kickchan])} {               set kickmsg "\00312\002\037Cause\037:\002 Mass-Msg/Invite/Adv/Trojan Send\00312"                putquick "KICK $kickchan $nick :$kickmsg"               newchanban $kickchan $bmask $botnick Mass-Msg $spambantime            }          } else {            return 0          }        }       }      return 0    }   } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Sun Oct 05, 2003 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-05T09:58:20-04:00</updated>

		<published>2003-10-05T09:58:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27973#p27973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27973#p27973"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27973#p27973"><![CDATA[
I know what they mean... but rationalizing them:<br><br>with || it means for example if $nick isn't voiced or oped then the proc will apply to him, but with &amp;&amp;, $nick must be NOT oped and NOT voiced, which means if he is oped but isnt voice or vise versa he won't be exempted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Oct 05, 2003 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-10-05T09:05:16-04:00</updated>

		<published>2003-10-05T09:05:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27971#p27971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27971#p27971"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27971#p27971"><![CDATA[
wohooo... of course i'm right. i thought 5 mins about it before posting <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=2617">arcane</a> — Sun Oct 05, 2003 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-05T06:21:38-04:00</updated>

		<published>2003-10-05T06:21:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27961#p27961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27961#p27961"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27961#p27961"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![isop $nick $kickchan] || ![isvoice $nick $kickchan]} { </code></pre></div>means:<br>if $nick is NOT oped in $kickchan <strong class="text-strong">OR</strong> if $nick is NOT voiced in $kickchan continue with the proc..<br>the:<div class="codebox"><p>Code: </p><pre><code>if {![isop $nick $kickchan] &amp;&amp; ![isvoice $nick $kickchan]} { </code></pre></div>means:<br>if $nick is NOT oped in $kickchan <strong class="text-strong">AND</strong> if $nick is NOT voiced in $kickchan continue with the proc..<br><br>and yes, I was working on a repeat and on a stats TCL script. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> sorry for the confusion I've accidentaly made. My appologies for that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Oct 05, 2003 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-05T06:09:53-04:00</updated>

		<published>2003-10-05T06:09:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27959#p27959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27959#p27959"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27959#p27959"><![CDATA[
<blockquote class="uncited"><div>I dont know why this whole discussion occured, but what caesar said is correct but explained it in another way.<br><br>caesar said:     <strong class="text-strong">if the user is oped AND voiced skip it</strong><br>strikelight said: <strong class="text-strong">if the user is NOT opped AND NOT voiced then do the following</strong><br><br>also, if its &amp;&amp; then if the user is oped or voiced then it won't skip it, he must be oped AND voiced in order for the bot to skip it. So I guess || is whats needed ?</div></blockquote>OMG NO! NOT AGAIN! I JUST GOT CAESAR TO SEE THE ERROR OF HIS WAYS!! NOT YOU NOW! SIR FZ THAT IS WRONG!@!@##!@#<br>READ ALL THE COMMENTS I SAID TO CAESAR!!!<br><br>I know, typing in caps is annoying, but so is repeating one's self...<br>heh... oy vay...<br><br>Moral of story: Arcane is correct, &amp;&amp; is needed.. please someone lock this topic before anyone else gets more confused  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Oct 05, 2003 6:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-05T05:48:23-04:00</updated>

		<published>2003-10-05T05:48:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27955#p27955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27955#p27955"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27955#p27955"><![CDATA[
I dont know why this whole discussion occured, but what caesar said is correct but explained it in another way.<br><br>caesar said:     <strong class="text-strong">if the user is oped AND voiced skip it</strong><br>strikelight said: <strong class="text-strong">if the user is NOT opped AND NOT voiced then do the following</strong><br><br>also, if its &amp;&amp; then if the user is oped or voiced then it won't skip it, he must be oped AND voiced in order for the bot to skip it. So I guess || is whats needed ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Oct 05, 2003 5:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-05T02:06:32-04:00</updated>

		<published>2003-10-05T02:06:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27943#p27943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27943#p27943"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27943#p27943"><![CDATA[
<blockquote class="uncited"><div>Umm.. yes, duno why I haven't seen the ! before them.. mea culpa <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>It's okay, your eyes must be strained from working on a large TCL project, I'm sure  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun Oct 05, 2003 2:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-05T01:50:44-04:00</updated>

		<published>2003-10-05T01:50:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27941#p27941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27941#p27941"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27941#p27941"><![CDATA[
Umm.. yes, duno why I haven't seen the ! before them.. mea culpa <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> — Sun Oct 05, 2003 1:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-04T19:36:19-04:00</updated>

		<published>2003-10-04T19:36:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27931#p27931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27931#p27931"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27931#p27931"><![CDATA[
<blockquote class="uncited"><div>|| means or and &amp;&amp; and.. I've said if the || is replaced by an &amp;&amp; then will be if something AND something then do.. not if something OR something else then do.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> It's exactly what you've said that I've said wrong.</div></blockquote>poor caesar... maybe you don't understand what "NOT" is...<br>Again, here is EXACTLY what you said:<blockquote class="uncited"><div>Actualy no, by changing from || to &amp;&amp; will make it test: <strong class="text-strong">if the user is oped AND voiced skip it.. the || dose the OR part, not viceversa.</strong></div></blockquote>see the part where you said: <em class="text-italics">if the user is oped AND voiced skip it</em><br><br>that is NOT what it would become... it would become <em class="text-italics">if the user is <strong class="text-strong">NOT</strong> opped AND <strong class="text-strong">NOT</strong> voiced <strong class="text-strong">then do the following</strong></em><br><br>or if you are determined to say when it won't occur, then it would be:<br><br><em class="text-italics">if the user <strong class="text-strong">IS</strong> opped <strong class="text-strong">OR</strong> the user <strong class="text-strong">IS</strong> voiced then skip it...</em><br><br>Arcane is correct, either way you want to read it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 04, 2003 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-04T18:28:52-04:00</updated>

		<published>2003-10-04T18:28:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27924#p27924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27924#p27924"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27924#p27924"><![CDATA[
|| means or and &amp;&amp; and.. I've said if the || is replaced by an &amp;&amp; then will be if something AND something then do.. not if something OR something else then do.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> It's exactly what you've said that I've said wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 04, 2003 6:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-04T17:34:09-04:00</updated>

		<published>2003-10-04T17:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27920#p27920</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27920#p27920"/>
		<title type="html"><![CDATA[bot kick to ops]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27920#p27920"><![CDATA[
<blockquote class="uncited"><div>And what I've said?</div></blockquote>You did not say the "NOT"'s....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 04, 2003 5:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
