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

	<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-06-11T13:49:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-11T13:49:48-04:00</updated>

		<published>2003-06-11T13:49:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21682#p21682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21682#p21682"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21682#p21682"><![CDATA[
To fix your error with the two different binds, just make the parameter list {args} since you don't use any of them anyway.<br><div class="codebox"><p>Code: </p><pre><code>proc ccdrift_topic {args} {   ...}</code></pre></div>There are two errors: $topic isn't set, and $channel isn't set. Well it looks like the $channel var is supposed to be $ccdrift_channel instead, so that's easy to fix. Topic is also very easy, there is a command called 'topic' which retrieves it. So right after your "global" line, put this:<br><br>set topic [topic $ccdrift_channel]<br><br>and all should be well. (You might also want to change the if {$topic != $html} { to read instead, if {[string compare $topic $html]} { )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 11, 2003 1:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T08:16:16-04:00</updated>

		<published>2003-06-11T08:16:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21658#p21658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21658#p21658"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21658#p21658"><![CDATA[
<blockquote class="uncited"><div>(37) TIME (stackable) <br>bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt; <br>proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;</div></blockquote>so who the heck is the blind one here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 8:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T07:18:59-04:00</updated>

		<published>2003-06-11T07:18:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21656#p21656</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21656#p21656"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21656#p21656"><![CDATA[
now, now.... calm down boys :p<br>you are both correct <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br>caesar is correct in telling you that you shall remove topic from the proc's arguments. And you are ofc correct that it'll give you a new error, but as you can see it's a different one. So you either have to set a global topic, or do as I said and check the $year =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 7:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-11T06:59:45-04:00</updated>

		<published>2003-06-11T06:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21655#p21655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21655#p21655"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21655#p21655"><![CDATA[
Are you blind, did you read what i started to post... I had one without topic that also gave me an error....<br><br>But now I'll try finding out what year contains.... thx<p>Statistics: Posted by Guest — Wed Jun 11, 2003 6:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T06:54:01-04:00</updated>

		<published>2003-06-11T06:54:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21654#p21654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21654#p21654"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21654#p21654"><![CDATA[
Are you blind or something? Scroll up a bit because I've told you what to remove.. seesh.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T06:37:44-04:00</updated>

		<published>2003-06-11T06:37:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21653#p21653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21653#p21653"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21653#p21653"><![CDATA[
yes, that's why you has to add a check to see if $year is a number or a string(topic)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 6:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-11T06:36:06-04:00</updated>

		<published>2003-06-11T06:36:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21652#p21652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21652#p21652"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21652#p21652"><![CDATA[
But if I remove topic from proc ccdrift the I get the following error:<br><br>Which generates the following error: <br>Tcl error [ccdrift_topic]: can't read "topic": no such variable <br><br>As mentioned above<p>Statistics: Posted by Guest — Wed Jun 11, 2003 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T06:01:03-04:00</updated>

		<published>2003-06-11T06:01:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21650#p21650</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21650#p21650"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21650#p21650"><![CDATA[
Uhmm.. yes, that will do the trick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T05:39:30-04:00</updated>

		<published>2003-06-11T05:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21648#p21648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21648#p21648"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21648#p21648"><![CDATA[
make it<div class="codebox"><p>Code: </p><pre><code>bind time - "?0 * * * *" ccdrift_topic bind time - "?5 * * * *" ccdrift_topic</code></pre></div><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=852">Papillon</a> — Wed Jun 11, 2003 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T05:36:20-04:00</updated>

		<published>2003-06-11T05:36:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21647#p21647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21647#p21647"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21647#p21647"><![CDATA[
Also, instead of all this:<blockquote class="uncited"><div>bind time - "00 * * * *" ccdrift_topic <br>bind time - "05 * * * *" ccdrift_topic <br>bind time - "10 * * * *" ccdrift_topic <br>bind time - "15 * * * *" ccdrift_topic <br>bind time - "20 * * * *" ccdrift_topic <br>bind time - "25 * * * *" ccdrift_topic <br>bind time - "30 * * * *" ccdrift_topic <br>bind time - "35 * * * *" ccdrift_topic <br>bind time - "40 * * * *" ccdrift_topic <br>bind time - "45 * * * *" ccdrift_topic <br>bind time - "50 * * * *" ccdrift_topic <br>bind time - "55 * * * *" ccdrift_topic </div></blockquote>wont' be easier like this:<div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *" ccdrift_topic bind time - "?5 * * * *" ccdrift_topic </code></pre></div>Ps: The aswer you are looking for stands before your eyes.. remove the "topic" from "proc ccdrift_topic {min hour day month year topic}"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 5:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T05:25:32-04:00</updated>

		<published>2003-06-11T05:25:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21644#p21644</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21644#p21644"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21644#p21644"><![CDATA[
errm... isn't the error quite obvious? read the tcl-error you recieve <span style="text-decoration:underline">carefully</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-11T05:23:29-04:00</updated>

		<published>2003-06-11T05:23:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21643#p21643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21643#p21643"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21643#p21643"><![CDATA[
hm bummer  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by Guest — Wed Jun 11, 2003 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-05T07:00:23-04:00</updated>

		<published>2003-06-05T07:00:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21274#p21274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21274#p21274"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21274#p21274"><![CDATA[
spock are you thinking of<br> <blockquote class="uncited"><div>   (11) TOPC (stackable)<br>         bind topc &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;topic&gt;<br><br>    (37) TIME (stackable)<br>         bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;</div></blockquote>so my proc must take: &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;topic&gt; and &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt; correct ?<br><br>Kaarel:<br><br>The script check an php page I've made which graps info from my ISP's page about faults on their network, at post changes in topic<p>Statistics: Posted by Guest — Thu Jun 05, 2003 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kaarel]]></name></author>
		<updated>2003-06-04T17:44:09-04:00</updated>

		<published>2003-06-04T17:44:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21255#p21255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21255#p21255"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21255#p21255"><![CDATA[
One question: What that script will do when it works<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3078">Kaarel</a> — Wed Jun 04, 2003 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-04T17:22:37-04:00</updated>

		<published>2003-06-04T17:22:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21253#p21253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21253#p21253"/>
		<title type="html"><![CDATA[Script help timer etc.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21253#p21253"><![CDATA[
scroll down to the bind section of tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Wed Jun 04, 2003 5:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
