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

	<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>2020-10-05T09:08:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-10-05T09:08:48-04:00</updated>

		<published>2020-10-05T09:08:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109061#p109061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109061#p109061"/>
		<title type="html"><![CDATA[timed unset of a channel mode and kill timer if running]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109061#p109061"><![CDATA[
Is there any way to achieve this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Oct 05, 2020 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-09-28T17:42:24-04:00</updated>

		<published>2020-09-28T17:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109052#p109052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109052#p109052"/>
		<title type="html"><![CDATA[timed unset of a channel mode and kill timer if running]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109052#p109052"><![CDATA[
i tried this but it didnt react as it prob doesnt recognize the channel mode  +U <br> -U<br><br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% +U" runbanX5bind mode - "#% -U" stopbanX5proc runbanX5 {nick uhost handle chan mode target} {      if {[string first U [getchanmode $target]] ne "-1"} {         set ::btimer($chan) [list [timer 20 [list rmbanX5 $chan]]]   }}proc stopbanX5 {nick uhost handle chan mode target} {      if {[string first U [getchanmode $target]] ne "-1"} {         rmbanX5 $chan   }} proc rmbanX5 {chan} {   if { [array exists ::btimer] &amp;&amp; [info exists ::btimer($chan)] } {      if { [lsearch -index 2 [timers] $::btimer($chan)] != -1} {         killtimer $::btimer($chan)      }      unset ::btimer($chan)   }      if {[string first U [getchanmode $chan]] ne "-1"} {        putnow "mode $chan -U"       }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Sep 28, 2020 5:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-09-28T17:25:20-04:00</updated>

		<published>2020-09-28T17:25:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109051#p109051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109051#p109051"/>
		<title type="html"><![CDATA[timed unset of a channel mode and kill timer if running]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109051#p109051"><![CDATA[
so basically if channel mode +U has been set to have a timer unset it in 20 minutes but if a chanop or anything else unsets it manually -U to halt the  timer as its no longer needed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Sep 28, 2020 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-09-28T14:27:36-04:00</updated>

		<published>2020-09-28T14:27:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109050#p109050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109050#p109050"/>
		<title type="html"><![CDATA[timed unset of a channel mode and kill timer if running]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109050#p109050"><![CDATA[
hey there,<br>i was curious how this code that was checking for ban +b m:*!*@* could be modified we actually wanted to check for channel mode +U and -U<br>if +U is set we wanted to have a timer remove it after 20 min<br>and if some chanops unsets it #channel -U before the timer has expired to kill the timer<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% +b" runbanbind mode - "#% -b" stopbanproc runban {nick uhost handle chan mode target} {   if {[string match -nocase m:*!*@* $target]} {      set ::btimer($chan) [list [timer 20 [list rmban $chan]]]   }}proc stopban {nick uhost handle chan mode target} {   if {[string match -nocase m:*!*@* $target]} {      rmban $chan   }}proc rmban {chan} {   if { [array exists ::btimer] &amp;&amp; [info exists ::btimer($chan)] } {      if { [lsearch -index 2 [timers] $::btimer($chan)] != -1} {         killtimer $::btimer($chan)      }      unset ::btimer($chan)   }   if { [ischanban m:*!*@* $chan] } {      pushmode $chan -b m:*!*@*   }}</code></pre></div>and instead of pushmode we wanted to use a regular mode used<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Sep 28, 2020 2:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
