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

	<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>2004-03-18T23:11:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T23:11:07-04:00</updated>

		<published>2004-03-18T23:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34789#p34789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34789#p34789"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34789#p34789"><![CDATA[
<blockquote class="uncited"><div>I'm getting this error, how to solve ?<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [part:pub]: can't read "wordcount(ident@host)": no such element in array</code></pre></div>my code<br><div class="codebox"><p>Code: </p><pre><code>proc part:pub {nick host handle channel partmsg} {        global wordcount checkchan        if {[string match -nocase $checkchan $chan]} {                putserv "PRIVMSG $checkchan :counter reset of $wordcount($host)"                unset wordcount($host)        }}</code></pre></div>BTw the S word ? SIGN ya mean ? looked over it, sorry</div></blockquote>yes sign..<br>and as for your error, you need to check if the variable exists before you attempt to do anything with it other than create it... Just like the other 'info exists' check in the previous code bit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 11:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jay]]></name></author>
		<updated>2004-03-18T18:32:48-04:00</updated>

		<published>2004-03-18T18:32:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34784#p34784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34784#p34784"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34784#p34784"><![CDATA[
I'm getting this error, how to solve ?<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [part:pub]: can't read "wordcount(ident@host)": no such element in array</code></pre></div>my code<br><div class="codebox"><p>Code: </p><pre><code>proc part:pub {nick host handle channel partmsg} {        global wordcount checkchan        if {[string match -nocase $checkchan $chan]} {                putserv "PRIVMSG $checkchan :counter reset of $wordcount($host)"                unset wordcount($host)        }}</code></pre></div>BTw the S word ? SIGN ya mean ? looked over it, sorry<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4709">Jay</a> — Thu Mar 18, 2004 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T17:20:47-04:00</updated>

		<published>2004-03-18T17:20:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34777#p34777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34777#p34777"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34777#p34777"><![CDATA[
<blockquote class="uncited"><div>bind sign &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;reason&gt;</div></blockquote>You mean this ??<br><br><br>stackable: sorry just wana make sur hehe <br><br>* you mean by more then one bind that u can define more then one bind for the same proc ..? and argument 0 would be the trigger it self ??<br><br>ah i think i get it its use full when u make a trigger that has multiple options<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T17:15:26-04:00</updated>

		<published>2004-03-18T17:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34775#p34775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34775#p34775"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34775#p34775"><![CDATA[
<blockquote class="uncited"><div>i think part and quit are the same if they aren't then use raw and use string match for quit<br><blockquote class="uncited"><div>bind part &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;msg&gt;</div></blockquote>&lt;msg&gt; = i think that refers to the quit msg ..<br><br>oh yes btw what does "stackable" mean ?? thats the key word i didn't understand .. hehe</div></blockquote>No, there is a specific binding already for quits.... starts with "s"... see tcl-commands.doc as I stated.<br><br>stackable means that the type of bind can be bound to more than once to a single trigger.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 5:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T17:09:57-04:00</updated>

		<published>2004-03-18T17:09:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34774#p34774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34774#p34774"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34774#p34774"><![CDATA[
i think part and quit are the same if they aren't then use raw and use string match for quit<br><blockquote class="uncited"><div>bind part &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;msg&gt;</div></blockquote>&lt;msg&gt; = i think that refers to the quit msg ..<br><br>oh yes btw what does "stackable" mean ?? thats the key word i didn't understand .. hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T17:09:45-04:00</updated>

		<published>2004-03-18T17:09:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34773#p34773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34773#p34773"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34773#p34773"><![CDATA[
[quote="Jay"]       incr $wordcount($host)<br>[/code]<br><br>Is the culprit generating the error... should be:<br><div class="codebox"><p>Code: </p><pre><code>incr wordcount($host)</code></pre></div>See the tcl-commands.doc that comes with eggdrop for valid bind types.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jay]]></name></author>
		<updated>2004-03-18T17:05:00-04:00</updated>

		<published>2004-03-18T17:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34772#p34772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34772#p34772"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34772#p34772"><![CDATA[
I used your suggestion to work with the hostname .<br><br>I get an error : Tcl error [count:pub]: can't read "1": no such variable<br><br>this is my code<div class="codebox"><p>Code: </p><pre><code>bind pubm - "*" count:pubbind part - part:pubset checkchan "#lounge"proc count:pub {nick host hand chan arg} {  global checkchan wordcount  if {[string match -nocase $checkchan $chan]} {     if {[info exists wordcount($host)]} {       incr $wordcount($host)       if {$wordcount($host) == "50"} {         pushmode $chan +v $nick       }     } else {       set wordcount($host) 1     }  }}proc part:pub {nick host arg} {        unset wordcount($host)}</code></pre></div>and how to bind it to a quit?<br>cause in tcl-documentation in the doc dir of the eggdrop I can't find it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4709">Jay</a> — Thu Mar 18, 2004 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T17:00:33-04:00</updated>

		<published>2004-03-18T17:00:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34771#p34771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34771#p34771"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34771#p34771"><![CDATA[
darn its time for me to get some sleep lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 5:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T16:58:57-04:00</updated>

		<published>2004-03-18T16:58:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34770#p34770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34770#p34770"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34770#p34770"><![CDATA[
I believe he meant<div class="codebox"><p>Code: </p><pre><code>if {[info exists $nick($counter)]} { </code></pre></div>to be<div class="codebox"><p>Code: </p><pre><code>if {[info exists wordcount($nick)]} { </code></pre></div>however you will need to still alter that to whatever method you have now chosen to pursue... be it with the nick or the host...<br><br>And no.. part is not the same thing as quit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 4:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jay]]></name></author>
		<updated>2004-03-18T16:55:49-04:00</updated>

		<published>2004-03-18T16:55:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34769#p34769</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34769#p34769"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34769#p34769"><![CDATA[
Tnx for you fast reply's <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>lil error in the code <br><br><div class="codebox"><p>Code: </p><pre><code>     if {[info exists $host{$counter)]} {should be      if {[info exists $host($counter)]} {</code></pre></div>lil question, why you use there $counter ? <br>that var doesn't make sense to me.<br><br>one last thing, does tcl considers part the same as quit ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4709">Jay</a> — Thu Mar 18, 2004 4:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T16:42:02-04:00</updated>

		<published>2004-03-18T16:42:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34768#p34768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34768#p34768"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34768#p34768"><![CDATA[
i know its old data i imported to my new still building it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> hehe so still got to adjust it hehe still not finished my php skills are 0 so .. working on it ..<br><br>oh crap i passed a month lol well done that when it was realy late and i hadn't noticed yet lol<br><br>and tnx for the info<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 4:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T16:27:13-04:00</updated>

		<published>2004-03-18T16:27:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34766#p34766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34766#p34766"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34766#p34766"><![CDATA[
<blockquote class="uncited"><div>yep true <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> hmm i gues not sur what the difference is .. manual states that its same as msgm and if i check msgm well not realy understandable for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> could u tell me what topic it is ??</div></blockquote>For one thing... <strong class="text-strong">pub</strong> isn't stackable... another thing, <strong class="text-strong">pub</strong> doesn't match against a mask....<br><br>the thread I was referring to is <a href="http://forum.egghelp.org/viewtopic.php?p=34463" class="postlink">http://forum.egghelp.org/viewtopic.php?p=34463</a><br><br>BTW, Ofloo: All the news on your site is marked as '2004-04-13'....<br>How the heck did you get to april when the rest of us are stuck in march still... lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T16:16:04-04:00</updated>

		<published>2004-03-18T16:16:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34765#p34765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34765#p34765"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34765#p34765"><![CDATA[
yep true <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> hmm i gues not sur what the difference is .. manual states that its same as msgm and if i check msgm well not realy understandable for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> could u tell me what topic it is ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-18T16:07:16-04:00</updated>

		<published>2004-03-18T16:07:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34764#p34764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34764#p34764"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34764#p34764"><![CDATA[
<blockquote class="uncited"><div>and bind on nick and set value to new nick and unset the previous value .. nick changes basicly set and unset not that hard</div></blockquote>Or easier still, use the host as the array index instead of the nick, and then you don't worry about nick changes.<br><br>Also, you want the <strong class="text-strong">pubm</strong> binding, not <strong class="text-strong">pub</strong> as already recently discussed in another topic.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Mar 18, 2004 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-18T15:58:24-04:00</updated>

		<published>2004-03-18T15:58:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34762#p34762</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34762#p34762"/>
		<title type="html"><![CDATA[counting user messages in channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34762#p34762"><![CDATA[
This should do it not tested it tho<br><br>bind on part kick quit and unset wordcount($nick)<br><br>and bind on nick and set value to new nick and unset the previous value .. nick changes basicly set and unset not that hard<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "*" count:pubset checkchan "#urchan"proc count:pub {nick host hand chan arg} {  global checkchan wordcount  # could also be onchan but then it would need to be a static channel  if {[string match -nocase $checkchan $chan]} {     if {[info exists $nick($counter)]} {       incr $wordcount($nick)       if {$wordcount($nick) == "100"} {         pushmode $chan +v $nick       }     } else {       set wordcount($nick) "1"     }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Mar 18, 2004 3:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
