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

	<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>2017-09-06T01:10:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-09-06T01:10:08-04:00</updated>

		<published>2017-09-06T01:10:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106422#p106422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106422#p106422"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106422#p106422"><![CDATA[
It's easy, not equal. <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=187">caesar</a> — Wed Sep 06, 2017 1:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2017-09-05T16:29:38-04:00</updated>

		<published>2017-09-05T16:29:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106416#p106416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106416#p106416"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106416#p106416"><![CDATA[
caesar:<br><br>Thanks for that input. Now I know what<em class="text-italics"> ne </em>means <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=12386">Landslyde</a> — Tue Sep 05, 2017 4:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-08-17T09:56:26-04:00</updated>

		<published>2017-08-17T09:56:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106413#p106413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106413#p106413"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106413#p106413"><![CDATA[
To make it backwards compatible instead of <em class="text-italics">ne</em> could use &gt; (greater sign). <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=187">caesar</a> — Thu Aug 17, 2017 9:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2017-08-17T08:13:59-04:00</updated>

		<published>2017-08-17T08:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106412#p106412</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106412#p106412"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106412#p106412"><![CDATA[
Madalin:<br><br>Perfect! <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=12386">Landslyde</a> — Thu Aug 17, 2017 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2017-08-01T03:06:36-04:00</updated>

		<published>2017-08-01T03:06:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106396#p106396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106396#p106396"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106396#p106396"><![CDATA[
Another way much easier would be this, to ignore some nicknames.<div class="codebox"><p>Code: </p><pre><code>set temp(ignore) [list nick1 nick2 nick3]</code></pre></div>and in the proc just use<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -nocase $nickname $temp(ignore)] ne "-1"} { return }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Tue Aug 01, 2017 3:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2017-07-31T10:31:31-04:00</updated>

		<published>2017-07-31T10:31:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106395#p106395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106395#p106395"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106395#p106395"><![CDATA[
Why not make a bots account and add all hostmasks of the bots to that account and with a simple check if user matches that account name you skip?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jul 31, 2017 10:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-07-30T20:07:28-04:00</updated>

		<published>2017-07-30T20:07:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106394#p106394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106394#p106394"/>
		<title type="html"><![CDATA[Re: How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106394#p106394"><![CDATA[
<blockquote class="uncited"><div>...<br>How can I fix that line so that it checks for the nicks I've set and breaks out so the bots aren't tracked?</div></blockquote>Your code looked like it should work to me.  So to be sure, I tried it.<br>( I changed the proc name and the value of  $nick1 )<br>All I did was create a bind pub that I could trigger to call it.<br><br>It worked.<br><br>I could break it though, by changing my nick to include upper case letters.<br>I wonder if that is what you are encountering?<br><br>Next, I inserted this line:<div class="codebox"><p>Code: </p><pre><code>set nickname [string tolower $nickname]</code></pre></div>just above the if command line.<br>That fixed it.<br><br>If what I've tried to describe could be the problem, play around with that and see what you get.<br><br>Reference:<br><a href="http://www.tcl.tk/man/tcl8.6/TclCmd/string.htm#M44" class="postlink">http://www.tcl.tk/man/tcl8.6/TclCmd/string.htm#M44</a><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Jul 30, 2017 8:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Landslyde]]></name></author>
		<updated>2017-07-30T19:18:15-04:00</updated>

		<published>2017-07-30T19:18:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106393#p106393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106393#p106393"/>
		<title type="html"><![CDATA[How to check for certain nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106393#p106393"><![CDATA[
This is a simple channel statistics script that i downloaded and am trying to modify so it won't track the channel bots.<br><br>This is what I have that's failing:<br><div class="codebox"><p>Code: </p><pre><code>proc statistics::monitor {nickname hostname handle channel arguments} {    set nick1 "kuneho"   set nick2 "kuliglig"   set nick3 "kamel"   set nick4 "Angelica"       if {($nickname == $nick1) || ($nickname == $nick2) || ($nickname == $nick3) || ($nickname == $nick4)} { return 0 }</code></pre></div>I can comment out the last line and everything works (including the unwanted tracking of the bots). <br><br>How can I fix that line so that it checks for the nicks I've set and breaks out so the bots aren't tracked?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12386">Landslyde</a> — Sun Jul 30, 2017 7:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
