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

	<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>2021-12-13T09:45:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-13T09:45:30-04:00</updated>

		<published>2021-12-13T09:45:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110639#p110639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110639#p110639"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110639#p110639"><![CDATA[
tested again and it seems to do exactly as expected so far it seems doing all it should thanks spike^^ / CrazyCat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 13, 2021 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-13T09:31:17-04:00</updated>

		<published>2021-12-13T09:31:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110638#p110638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110638#p110638"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110638#p110638"><![CDATA[
loaded and tested it and it doesnt seem to remove Timer if hop nick has left channel or is de-halfopped spike^^<br><br>also if nick rejoins and gets halfopped again +h nick the previous timer is still running but no annoucements are made<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Dec 13, 2021 9:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-12T17:51:07-04:00</updated>

		<published>2021-12-12T17:51:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110636#p110636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110636#p110636"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110636#p110636"><![CDATA[
OK, I bet I know what is going on:)<br><br>Let us assume that the recently added, infinitely repeating timer Does Not function as one might Hope and Expect it to....<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% *+*h*" auto:announcementproc auto:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   set tglow [string tolower $target]   if {[info exists ::ish($tglow)]} { return }   putserv "PRIVMSG $chan :$target is on air tune in to your radio"   #set ::ish($tglow) [timer 10 [list repeat:announcement $chan $target] 0]   set ::ish($tglow) [timer 10 [list repeat:announcement $chan $target]]}proc repeat:announcement {chan target} {   ##   set tglow [string tolower $target]   if {[onchan $target $chan] &amp;&amp; [ishalfop $target $chan]} {      putserv "PRIVMSG $chan :$target is on air tune into your radio"      ##      set ::ish($tglow) [timer 10 [list repeat:announcement $chan $target]]   } else {      #killtimer $::ish($tglow)      unset ::ish($tglow)   }}bind mode - "#% *-*h*" stop:announcementproc stop:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   set tglow [string tolower $target]   if {![info exists ::ish($tglow)]} { return }   putserv "PRIVMSG $chan :$target show is done thank you $target for the nice show"   killtimer $::ish($tglow)   unset ::ish($tglow)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 12, 2021 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T17:05:35-04:00</updated>

		<published>2021-12-12T17:05:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110635#p110635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110635#p110635"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110635#p110635"><![CDATA[
tested it same result thanks for the efforts u put into it tho Spike^^ and CrazyCat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-12T16:22:17-04:00</updated>

		<published>2021-12-12T16:22:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110633#p110633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110633#p110633"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110633#p110633"><![CDATA[
Maybe it's just a case issue with the array element name?<br>one last try...<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% *+*h*" auto:announcementproc auto:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   set tglow [string tolower $target]   if {[info exists ::ish($tglow)]} { return }   putserv "PRIVMSG $chan :$target is on air tune in to your radio"   set ::ish($tglow) [timer 10 [list repeat:announcement $chan $target] 0]}proc repeat:announcement {chan target} {   if {[onchan $target $chan] &amp;&amp; [ishalfop $target $chan]} {      putserv "PRIVMSG $chan :$target is on air tune into your radio"   } else {      set tglow [string tolower $target]      killtimer $::ish($tglow)      unset ::ish($tglow)   }}bind mode - "#% *-*h*" stop:announcementproc stop:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   set tglow [string tolower $target]   if {![info exists ::ish($tglow)]} { return }   putserv "PRIVMSG $chan :$target show is done thank you $target for the nice show"   killtimer $::ish($tglow)   unset ::ish($tglow)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 12, 2021 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T15:52:50-04:00</updated>

		<published>2021-12-12T15:52:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110632#p110632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110632#p110632"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110632#p110632"><![CDATA[
thanks for trying Spike^^ CrazyCat much apreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T15:45:40-04:00</updated>

		<published>2021-12-12T15:45:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110631#p110631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110631#p110631"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110631#p110631"><![CDATA[
perhaps the halfopped nick can be stored seperate in a var as well to be used by repeat announcement proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T15:42:55-04:00</updated>

		<published>2021-12-12T15:42:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110630#p110630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110630#p110630"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110630#p110630"><![CDATA[
the repeat announcement doesnt seem to know what nicks to check for as it doesnt get feeded the nick after the first time nick is halfopped<br><br>perhaps if the nick is stored to be used by repeat annoucer it can do the checks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 3:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T15:39:41-04:00</updated>

		<published>2021-12-12T15:39:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110628#p110628</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110628#p110628"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110628#p110628"><![CDATA[
ive loaded it and changed to utimer to test with not to have to wait minutes to see results<br><br>but when nick is de-halfopped or left channel the timer doesnt get removed tho<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-12T15:31:03-04:00</updated>

		<published>2021-12-12T15:31:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110625#p110625</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110625#p110625"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110625#p110625"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind mode - "#% *+*h*" auto:announcementproc auto:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   if {[info exists ::ish($target)]} { return }   putserv "PRIVMSG $chan :$target is on air tune in to your radio"   set ::ish($target) [timer 10 [list repeat:announcement $chan $target] 0]}proc repeat:announcement {chan nick} {   if {[onchan $nick $chan] &amp;&amp; [ishalfop $nick $chan]} {      putserv "PRIVMSG $chan :$nick is on air tune into your radio"   } else {      killtimer $::ish($nick)      unset ::ish($nick)   }}bind mode - "#% *-*h*" stop:announcementproc stop:announcement {nick uhost handle chan mode target} {   if {[isbotnick $target] || ![string equal -nocase $chan "#test"]} { return }   if {![info exists ::ish($target)]} { return }   putserv "PRIVMSG $chan :$target show is done thank you $target for the nice show"   killtimer $::ish($target)   unset ::ish($target)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Dec 12, 2021 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T13:00:44-04:00</updated>

		<published>2021-12-12T13:00:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110612#p110612</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110612#p110612"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110612#p110612"><![CDATA[
now i also get error:<br><blockquote class="uncited"><div>Tcl error [stop:announcement]: invalid timerID</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T12:51:41-04:00</updated>

		<published>2021-12-12T12:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110611#p110611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110611#p110611"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110611#p110611"><![CDATA[
oh true thanks for the correction this is what i have so far <br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% *+*h*" auto:announcementproc auto:announcement {nick uhost handle chan mode target} {   if {[info exists ::ish($target)]} { return }   if {($target != $::botnick) &amp;&amp; [string equal -nocase $chan "#test"]} {      putserv "PRIVMSG $chan :[colors] $target [end][colors] is on air tune into your radio [end]"      set ::ish($target) [utimer 10 [list repeat:announcement $chan $target] 0]   }}proc repeat:announcement {chan nick} {   if {![info exists ::ish($nick)]} { return }   if {[onchan $nick $chan] &amp;&amp; [ishalfop $nick $chan]} {      putserv "PRIVMSG $chan :[colors] $nick [end][colors] is on air tune into your radio [end]"   } else {      killutimer $::ish($nick)   }}bind mode - "#% *-*h*" stop:announcementproc stop:announcement {nick uhost handle chan mode target} {   if {![info exists ::ish($target)]} { return }   if {($target != $::botnick) &amp;&amp; [string equal -nocase $chan "#test"]} {      putserv "PRIVMSG $chan :[colors] $target [end][colors] show is done thank you [end][colors] $target [end][colors]for the nice show [end]"      killutimer $::ish($target)   }}</code></pre></div>it still seems to not remove timer if halfop nick has left channel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-12-12T11:55:09-04:00</updated>

		<published>2021-12-12T11:55:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110609#p110609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110609#p110609"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110609#p110609"><![CDATA[
I understand, but it was already managed.<br>If you want to kill the previous timer and start a new one (to reinit the 10 minutes delay), just unset ::ish($target) if it exists.<br><br>Note that in your code (proc auto:announcement), you have an error:<div class="codebox"><p>Code: </p><pre><code>if {[info exists ::ish($nick)]} { return }</code></pre></div>It's not $nick but $target<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun Dec 12, 2021 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-12T09:33:55-04:00</updated>

		<published>2021-12-12T09:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110608#p110608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110608#p110608"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110608#p110608"><![CDATA[
<blockquote class="uncited"><div>Why do you add your <strong class="text-strong">if {[set thetimer ....} { killtimer xxxxx }</strong> in all procs ?<br>Just keep the <strong class="text-strong"> if {[info exists ::ish($nick)]} { return }</strong> in proc auto:announcement, it will be ok when pple come out and in and regain hop.<br><br>And concerning the person out of the chan when timer runs... why <strong class="text-strong">catch unset</strong> ? The timer is killed if $nick is not on chan OR $nick is not halfop. With your catch, you first unset the "memory" timer ID and then try to use this variable to kill the timer.<br><br>I resume your code:<div class="codebox"><p>Code: </p><pre><code># try to delete ::is($nick)catch { unset ::ish($nick) }# don't care if deleted or not, use it to kill the timerkillutimer $::ish($nick)# probably an error, no ?</code></pre></div></div></blockquote>the reason i added is in an ettempt to make sure if if halfopped nick has left channel to have the timer lifted and also to make sure if timer is running and halfopped nick rejoining channel and gets halfop again +h nick not to  have a duplicate timer start again while there already was one running<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun Dec 12, 2021 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2021-12-12T00:09:12-04:00</updated>

		<published>2021-12-12T00:09:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110607#p110607</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110607#p110607"/>
		<title type="html"><![CDATA[Auto announcement every 10 min after nick gets halfop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110607#p110607"><![CDATA[
hi simo<br><br>remove:<br>catch { unset ::ish($nick) }<br><br>and look for this :<br>killutimer $::ish($nick)<br><br>change it to:<br>unset -nocomplain -- ::is($nick)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Dec 12, 2021 12:09 am</p><hr />
]]></content>
	</entry>
	</feed>
