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

	<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>2011-02-17T03:52:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-17T03:52:54-04:00</updated>

		<published>2011-02-17T03:52:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96061#p96061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96061#p96061"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96061#p96061"><![CDATA[
Ok, just figured it out, if the chan is reged and u are the owner u get ~ and when u join it sets u as +oq and as admin sets u as +oa so u always get the +o flag as op.<br><br>I had my auto op turned off so i had to manually set my self as owner thus i wasent getting the +o flag.<br><br>works fine now.<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Thu Feb 17, 2011 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-02-16T22:03:38-04:00</updated>

		<published>2011-02-16T22:03:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96059#p96059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96059#p96059"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96059#p96059"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>...<br>i checked and it already says: set opchars "@&amp;~"<br><br>These are correct for my server too but if u are a &amp; or ~ ie: admin or founder it dont work.<br><br>It only works with ops, @ :/<br></div></blockquote>I don't know what to say.<br><br>I just tried it with a bot of mine, in a channel I own.<br>The ircd is   Unreal3.2.1<br>and I do not appear with @.   I appear in my channel with ~.<br><br>In the partyline:<br>.tcl isop &lt;mynick&gt; #mychan<br>&lt;botnick&gt; Tcl: 1<br><br>So, the bot is detecting me as an op.<br><br>I'm sorry that it isn't working for you, and I wish I knew what else to tell you to try.   If it is something simple, then it is escaping me at the moment.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Feb 16, 2011 10:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2011-02-16T21:16:20-04:00</updated>

		<published>2011-02-16T21:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96058#p96058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96058#p96058"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96058#p96058"><![CDATA[
For the switch error:<div class="codebox"><p>Code: </p><pre><code>switch -nocase -- [lindex ..] {</code></pre></div>"--" marks the end of options.<br><br>For the opchars issue, the opchars feature in Eggdrop is useless, it only works on the initial join of the bot, it doesn't even parse +a/+q changes. It's planned to be fixed, but in the meantime you can use a script like <a href="http://thommey.tclhelp.net/dl/dl.htcl?id=6" class="postlink">this</a> which will provide you [isadmin] and [isowner] so you can use them in your code ({[isop $n $c] || [isadmin $n $c] || [isowner $n $c]}). It's adjusted for UnrealIRCd, if you have different modes you might need to adjust the "parsemodestr" procedure to account for other modes (raw 005 tells you about them).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Wed Feb 16, 2011 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-16T17:01:02-04:00</updated>

		<published>2011-02-16T17:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96054#p96054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96054#p96054"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96054#p96054"><![CDATA[
<blockquote class="uncited"><div>Well, you have to start it with '.tssync on' <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>error i found with your code<br><br>Tcl error [switch:sync]: bad option "-nocase": must be -exact, -glob, -regexp, or --<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Wed Feb 16, 2011 5:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-16T10:56:19-04:00</updated>

		<published>2011-02-16T10:56:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96048#p96048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96048#p96048"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96048#p96048"><![CDATA[
<blockquote class="uncited"><div>Well, you have to start it with '.tssync on' <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>I tryed<br>.tssync on<br>.tssync off<br>.tssync<br><br>and none worked, just nothing, no notice nothing.<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Wed Feb 16, 2011 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-16T10:49:08-04:00</updated>

		<published>2011-02-16T10:49:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96047#p96047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96047#p96047"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96047#p96047"><![CDATA[
Well, you have to start it with '.tssync on' <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 Feb 16, 2011 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-16T10:35:25-04:00</updated>

		<published>2011-02-16T10:35:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96046#p96046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96046#p96046"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96046#p96046"><![CDATA[
<blockquote class="uncited"><div>Look in eggdrop.conf for: <br>set opchars "@" <br><br>If it is as above, then try changing it to: <br>set opchars "@&amp;~" <br>and then .restart your bot. </div></blockquote>i checked and it already says: set opchars "@&amp;~"<br><br>These are correct for my server too but if u are a &amp; or ~ ie: admin or founder it dont work.<br><br>It only works with ops, @ :/<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Wed Feb 16, 2011 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-02-16T10:16:56-04:00</updated>

		<published>2011-02-16T10:16:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96045#p96045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96045#p96045"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96045#p96045"><![CDATA[
<blockquote class="uncited"><div>...<div class="codebox"><p>Code: </p><pre><code>if {[isop $nick ###1] == 1} {</code></pre></div>well this works for ops in the channel ###1 but it does bnot work for any1 higher than chan ops.<br><br>Like say the user was a channel admin or channel founder then this if statement does not work :/<br>...</div></blockquote>Something to check:<br><br>(for an example, go here:   <a href="http://eggwiki.org/Eggdrop.conf" class="postlink">http://eggwiki.org/Eggdrop.conf</a>   )<br><br><br>Look in eggdrop.conf for:<br> set opchars "@"<br><br>If it is as above, then try changing it to:<br>set opchars "@&amp;~"<br>and then   .restart    your bot.<br><br>There is a brief explanation there in that well commented eggdrop.conf that you can find online with the link above.<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> — Wed Feb 16, 2011 10:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-16T09:57:28-04:00</updated>

		<published>2011-02-16T09:57:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96044#p96044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96044#p96044"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96044#p96044"><![CDATA[
ohh and btw im having a little problem with this if statement:<br><div class="codebox"><p>Code: </p><pre><code>if {[isop $nick ###1] == 1} {</code></pre></div>well this works for ops in the channel ###1 but it does bnot work for any1 higher than chan ops.<br><br>Like say the user was a channel admin or channel founder then this if statement does not work :/<br><br>how could i add it for ops or higher ?<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Wed Feb 16, 2011 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-16T09:34:39-04:00</updated>

		<published>2011-02-16T09:34:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96043#p96043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96043#p96043"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96043#p96043"><![CDATA[
Thanks caesar but im trying to use your code but it dont seem to work :/<br><div class="codebox"><p>Code: </p><pre><code>bind pub - .tssync switch:sync proc switch:sync {nick uhost handle chan text} {   switch -nocase [lindex [split $text] 0] {     "on" {       putserv "NOTICE $nick :TSSync turned on."       bind cron - {* */1 * * *} cron:sync     }     "off" {       putserv "NOTICE $nick :TSSync turned off."       unbind cron - {* */1 * * *} cron:sync     }     default {       putserv "NOTICE $nick :Use .tssync on/off."     }   } } proc cron:sync {minute hour day month weekday} {   putserv "PRIVMSG OperServ :tssync" } </code></pre></div>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Wed Feb 16, 2011 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-16T08:04:57-04:00</updated>

		<published>2011-02-16T08:04:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96040#p96040</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96040#p96040"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96040#p96040"><![CDATA[
The {* */2 * * *} is correct, cos without the '/' it would be every day at 02:00.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 16, 2011 8:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-15T20:45:51-04:00</updated>

		<published>2011-02-15T20:45:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96037#p96037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96037#p96037"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96037#p96037"><![CDATA[
Ya willyw, i already have them book marked<br>my way of learning is from the top to the bottom and making scripts as i go, but this timer thing i needed asap among a few other little events that i managed on my own with. The rest is learning and building to what ive already got.<br><br>Thanks for both u and caesar, its always good to get a starting point to work from, in my case it was timers lol<br><br>Thanks again<br>Gemster<br><br>P.S -  hopefully u will see me here in the future helping others <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=11375">Gemster</a> — Tue Feb 15, 2011 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-02-15T20:36:47-04:00</updated>

		<published>2011-02-15T20:36:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96036#p96036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96036#p96036"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96036#p96036"><![CDATA[
<blockquote class="uncited"><div>Thanks willyw, i will defo take a look at them links and bookmark as ive wanted to learn tcl for months but everytime i start i get cut off by something i cant get past.<br>...</div></blockquote>Keep reading, keep experimenting, and keep coming here when you get stuck.<br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>but there are a few things i dont understand ...<br><br>bind pub n<br>switch:<br>lindex<br>split </div></blockquote>Seeing the above, makes me highly recommend that you visit the Suninet TCL guide that I mentioned previously.<br>Here's the link again:   <br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br>Three out of those four, are covered there.   <br><br>That site is the kind that you can start at the beginning, and read everything, step-by-step, through to the end.<br>You can use that site for reference,... picking out what you want....  but for beginners,  it really is a help to start at the beginning there, and let it guide you through.<br><br>Try it.     <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> — Tue Feb 15, 2011 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gemster]]></name></author>
		<updated>2011-02-15T17:30:18-04:00</updated>

		<published>2011-02-15T17:30:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96034#p96034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96034#p96034"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96034#p96034"><![CDATA[
Thanks a lot guys,<br><br>Just a reply to the "0 * * * *" mask, after testing it i see that it does run at ever :00 past the hour <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>And the if statements makes the "switch" a lot more easyer to understand now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Well now im going to make another "bindcron" and try to use your code caesar <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Just 1 question tho, what if i want it to run every 2 hours ?<br><br>Like this: {* */2 * * *}<br><br>Thanks<br>Gemster<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11375">Gemster</a> — Tue Feb 15, 2011 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-02-15T17:11:37-04:00</updated>

		<published>2011-02-15T17:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96033#p96033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96033#p96033"/>
		<title type="html"><![CDATA[im in need of a timed event]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96033#p96033"><![CDATA[
I used the 'n' flag on the 'pub' bind, not on cron. You can change the flag to whatever you wish, or replace it with '*' and add an if statement in the proc to allow channel operators to use it for instance.<br><br>I'm not 100% sure about that "0 * * * *" mask, theoretically it should execute at minute 0, and since there's only 1 minute 0 at every hour.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>The 'switch' statement can be translated in 3 simple 'if' statements:<div class="codebox"><p>Code: </p><pre><code>if {user input after the .tssync is on} {  #do this}if {user input after the .tssync is off} {  #do this}if {user input after the .tssync is not on nor off} {  #do this}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 15, 2011 5:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
