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

	<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>2016-06-04T03:47:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[creasy]]></name></author>
		<updated>2016-06-04T03:47:15-04:00</updated>

		<published>2016-06-04T03:47:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105099#p105099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105099#p105099"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105099#p105099"><![CDATA[
That fixed it. Thanks for the help guys <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=12611">creasy</a> — Sat Jun 04, 2016 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-06-03T08:44:51-04:00</updated>

		<published>2016-06-03T08:44:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105090#p105090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105090#p105090"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105090#p105090"><![CDATA[
<blockquote class="uncited"><div>...<br>And another question, can I use wildcards, like "nick*"?</div></blockquote><blockquote class="uncited"><div>...<br>If you want to work with a list of nicks, or check against user file for a specific flag, or check to see if poster is an op - it would require a little bit more scripting.  <br>...</div></blockquote>and if you want to use wildcards, it would require a little bit more scripting.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>One idea, might be to use the <br>string match<br>command.  Check out : <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm#M39" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/string.htm#M39</a><br><br>Something along the lines of:<div class="codebox"><p>Code: </p><pre><code>if {[string match nick* $nickname]} {        return 0      }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jun 03, 2016 8:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-06-03T08:36:27-04:00</updated>

		<published>2016-06-03T08:36:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105088#p105088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105088#p105088"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105088#p105088"><![CDATA[
<blockquote class="uncited"><div>Fix your if checks like..<br>($nickname eq "nick1") || ($nickname eq "nick2")</div></blockquote>ouch... I didn't see the   [  ]  in there.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Jun 03, 2016 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-06-03T08:10:31-04:00</updated>

		<published>2016-06-03T08:10:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105086#p105086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105086#p105086"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105086#p105086"><![CDATA[
Fix your if checks like..<br>($nickname eq "nick1") || ($nickname eq "nick2")<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jun 03, 2016 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[creasy]]></name></author>
		<updated>2016-06-03T02:17:42-04:00</updated>

		<published>2016-06-03T02:17:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105084#p105084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105084#p105084"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105084#p105084"><![CDATA[
<blockquote class="uncited"><div>Tried it yet? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Yes, it does work, but it seems to be ignoring everyone now and I get this error message on the partyline<div class="codebox"><p>Code: </p><pre><code>[06:14:51] Tcl error [::statistics::monitor]: invalid command name "creasy"</code></pre></div>where "creasy" is my irc nick issuing the !stat "nick1" command, and not the nick the bot is ignoring.<br>And another question, can I use wildcards, like "nick*"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12611">creasy</a> — Fri Jun 03, 2016 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-06-02T10:43:41-04:00</updated>

		<published>2016-06-02T10:43:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105078#p105078</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105078#p105078"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105078#p105078"><![CDATA[
Tried it yet? <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=10420">willyw</a> — Thu Jun 02, 2016 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[creasy]]></name></author>
		<updated>2016-06-02T09:30:38-04:00</updated>

		<published>2016-06-02T09:30:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105074#p105074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105074#p105074"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105074#p105074"><![CDATA[
<blockquote class="uncited"><div>So what did you have in mind?</div></blockquote>I want the bot to ignore a few other bots, which do not have accounts on the bot, so it would record stats from humans only.<blockquote class="uncited"><div>Did you make a typo in the hostmask?<br>Did the ignore expire?</div></blockquote>No they did not expire. I added them permanently as nick!*@* and rehashed the bot.<br>So, if I modify<div class="codebox"><p>Code: </p><pre><code> if {([isbotnick $nickname]) || (![channel get $channel stat])} {    return 0  }</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code> if {([isbotnick $nickname]) || ([$nickname eq "nick1"]) || ([$nickname eq "nick2"]) || (![channel get $channel stat])} {    return 0  }</code></pre></div>it shoud work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12611">creasy</a> — Thu Jun 02, 2016 9:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-06-02T09:20:25-04:00</updated>

		<published>2016-06-02T09:20:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105073#p105073</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105073#p105073"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105073#p105073"><![CDATA[
<blockquote class="uncited"><div>Is there a way to make this script ignore the stats for certain users?</div></blockquote>Probably.<br>But start with clarifying what you mean by "certain users".<br>A list of nicks?<br>Channel operators?<br>Users with accounts in bot, with a specific flag?<br>So what did you have in mind?<br><br><br>See the proc named:<br>proc statistics::monitor<br><br>It already has one section in it, to do some ignoring.<div class="codebox"><p>Code: </p><pre><code> if {([isbotnick $nickname]) || (![channel get $channel stat])} {    return 0  } </code></pre></div>If the poster was the bot, this proc stops right there.   I really don't think this checking is necessary, since the bot doesn't see its own posts anyway, but nevertheless the if check is there.<br>Or, if the channel has not been set to be monitored, all posts are ignored.... the proc stops right there.<br><br>Suppose right below that, you edited in:<div class="codebox"><p>Code: </p><pre><code>if {$nickname eq "creasy"} {        return 0   }</code></pre></div>Then if you are the poster, proc stops right there.<br><br>If you want to work with a list of nicks, or check against user file for a specific flag, or check to see if poster is an op -  it would require a little bit more scripting.<br><br>But without running the script, I think this is the general idea.<br><br>I hope this helps.<br><blockquote class="uncited"><div>.+ignore-ing those users on the bot doesn't seem to work.</div></blockquote>Did you make a typo in the hostmask?<br>Did the ignore expire?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jun 02, 2016 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[creasy]]></name></author>
		<updated>2016-06-02T07:38:30-04:00</updated>

		<published>2016-06-02T07:38:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105072#p105072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105072#p105072"/>
		<title type="html"><![CDATA[chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105072#p105072"><![CDATA[
Is there a way to make this script ignore the stats for certain users?<br>.+ignore-ing those users on the bot doesn't seem to work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12611">creasy</a> — Thu Jun 02, 2016 7:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-02-18T22:02:37-04:00</updated>

		<published>2016-02-18T22:02:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104714#p104714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104714#p104714"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104714#p104714"><![CDATA[
<blockquote class="uncited"><div>...<br>why <br>...</div></blockquote>Because you said:  "...when I do command no response"<br>and that would be one of the first things to check.<br><blockquote class="uncited"><div>I do not want to use the .chanstat #channel + chanstat<br>...</div></blockquote>I didn't ask you to do that.<br><br>Besides, it is not  " + chanstat"  .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Feb 18, 2016 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-02-18T19:47:58-04:00</updated>

		<published>2016-02-18T19:47:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104713#p104713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104713#p104713"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104713#p104713"><![CDATA[
<blockquote class="uncited"><div>Do:<br>.chaninfo #channel<br><br>and see the section named<br>User defined channel flags:<br><br>and find stat<br>Is it  +stat   or    -stat      ?</div></blockquote>why I do not want to use the .chanstat #channel + chanstat because I had had difficulties doing / dccchat to his boot so I do not want to use<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Thu Feb 18, 2016 7:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-02-18T08:35:47-04:00</updated>

		<published>2016-02-18T08:35:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104712#p104712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104712#p104712"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104712#p104712"><![CDATA[
Do:<br>.chaninfo #channel<br><br>and see the section named<br>User defined channel flags:<br><br>and find stat<br>Is it  +stat   or    -stat      ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Feb 18, 2016 8:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-02-18T05:56:03-04:00</updated>

		<published>2016-02-18T05:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104711#p104711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104711#p104711"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104711#p104711"><![CDATA[
thanks I've done what is suggested friend when I do command no response<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Thu Feb 18, 2016 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2016-02-15T11:46:28-04:00</updated>

		<published>2016-02-15T11:46:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104699#p104699</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104699#p104699"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104699#p104699"><![CDATA[
One idea that comes to mind :<br><br>Find this line in the script:<div class="codebox"><p>Code: </p><pre><code>  setudef flag stat</code></pre></div><br>And insert this line below it:<br><div class="codebox"><p>Code: </p><pre><code>utimer 3 [list channel set #real_channel_name +stat]</code></pre></div><br>substituting in the real channel #name that you want to have <br>+stat<br>turned on for you.<br><br><br>There may be better ideas.   Keep checking this thread for a while, to see if anyone else posts here.<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> — Mon Feb 15, 2016 11:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2016-02-15T08:40:44-04:00</updated>

		<published>2016-02-15T08:40:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104698#p104698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104698#p104698"/>
		<title type="html"><![CDATA[Re: chanstas]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104698#p104698"><![CDATA[
yes one channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Mon Feb 15, 2016 8:40 am</p><hr />
]]></content>
	</entry>
	</feed>
