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

	<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>2025-05-01T20:48:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2025-05-01T20:48:36-04:00</updated>

		<published>2025-05-01T20:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113319#p113319</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113319#p113319"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113319#p113319"><![CDATA[
It works very well for me this way.<div class="codebox"><p>Code: </p><pre><code># delay time (in minutes) to REOP Bot. set autoopchan 4 bind mode - "*+o*" Re-OP:Me bind mode - "*-o*" Re-OP:Meproc Re-OP:Me {nick uhost hand chan mode target} {global botnick  autoopchan  if {$mode eq "-o" &amp;&amp; [isbotnick $target]} { puthelp "chanserv deop $chan $nick" -next  puthelp "PRIVMSG $chan :$nick don't take away my access to -@-" if {[info exists TimeDReop($chan)]} {after cancel $TimeDReop($chan)  unset TimeDReop($chan) }  set TimeDReop($chan) [list [after [expr {$autoopchan*1000*60}] [list AUTO:OP $botnick $chan]]]}if {$mode eq "+o" &amp;&amp; [isbotnick $target]} {  if {[info exists TimeDReop($chan)]} { after cancel $TimeDReop($chan)  unset TimeDReop($chan)  } }}proc AUTO:OP {nick chan} {  if {[isbotnick $nick] &amp;&amp; ![botisop $chan] &amp;&amp; [onchan $nick $chan]} { putserv "chanserv op $chan $nick"}}</code></pre></div>Very good work <strong class="text-strong">simo</strong> thanks... Thank you very much <strong class="text-strong">CrazyCat</strong> for also helping with the corrections<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Thu May 01, 2025 8:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-05-01T17:34:30-04:00</updated>

		<published>2025-05-01T17:34:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113318#p113318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113318#p113318"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113318#p113318"><![CDATA[
<blockquote class="uncited"><div>i wasnt sure on what network he will use this and if it has cmode +O in use for users thats why i made sure its lowercase but perhaps its not really needed im not sure.</div></blockquote>Whatever the network is or does, it wont change the bind which is <strong class="text-strong">internal to the eggdrop</strong>. If you bind the mode +o, eggdrop will react to mode +o. If the server uses +O, eggdrop won't react.<br><br>In party-lie, do:<div class="codebox"><p>Code: </p><pre><code>.tcl bind mode - "#% +[string tolower [string tolower [string toupper [string tolower o]]]]" Re-OP:Me.binds mode</code></pre></div>After, do:<div class="codebox"><p>Code: </p><pre><code>.tcl bind mode - "#% +o" Re-OP:Me.binds mode</code></pre></div>The results of the 2 .binds mode are the same, the collection of string tolower/toupper is interpreted when the bind is declared.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu May 01, 2025 5:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2025-05-01T12:52:33-04:00</updated>

		<published>2025-05-01T12:52:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113317#p113317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113317#p113317"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113317#p113317"><![CDATA[
i wasnt sure on what network he will use this and if it has cmode +O in use for users thats why i made sure its lowercase but perhaps its not really needed im not sure.<br><br>else he can use :<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "#% +o" Re-OP:Mebind mode - "#% -o" Re-OP:Me </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu May 01, 2025 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2025-05-01T10:59:45-04:00</updated>

		<published>2025-05-01T10:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113316#p113316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113316#p113316"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113316#p113316"><![CDATA[
WTF ?<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">bind mode - "#% +[string tolower [string tolower [string toupper [string tolower o]]]]" Re-OP:Mebind mode - "#% -[string tolower [string tolower [string toupper [string tolower o]]]]" Re-OP:Me</code></pre></div> <strong>script</strong> Are you sure you want to lower + upper + double-lower a hard coded char ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu May 01, 2025 10:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2025-05-01T09:04:18-04:00</updated>

		<published>2025-05-01T09:04:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113315#p113315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113315#p113315"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113315#p113315"><![CDATA[
try this :<br><div class="codebox"><p>Code: </p><pre><code># delay time (in minutes) to REOP Bot. set autoopchan 4bind mode - "#% +[string tolower [string tolower [string toupper [string tolower o]]]]" Re-OP:Mebind mode - "#% -[string tolower [string tolower [string toupper [string tolower o]]]]" Re-OP:Me  proc Re-OP:Me {nick uhost hand chan mode target} {    global botnick  autoopchan     if {$mode eq "-o" &amp;&amp; [isbotnick $target]} {   if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)  }    set TimeDReop($chan) [list [after [expr {$autoopchan*1000*60}] [list AUTO:OP $botnick $chan]]]  }  if {$mode eq "+o" &amp;&amp; [isbotnick $target]} {  if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)  }}}    proc AUTO:OP {nick chan} {   if {[isbotnick $nick] &amp;&amp; ![botisop $chan] &amp;&amp; [onchan $nick $chan]} {  putserv "chanserv op $chan $nick"}}  </code></pre></div><br>I tested it and it seems to work fine it sets OP after 4 minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu May 01, 2025 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2025-04-30T20:54:23-04:00</updated>

		<published>2025-04-30T20:54:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113313#p113313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113313#p113313"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113313#p113313"><![CDATA[
thanks simo  I will try the TCL<br><br>I tested it and the TCL doesn't work.<br>When I remove the OP, the timeout passes and the auto-op doesn't work.<br><div class="codebox"><p>Code: </p><pre><code> bind mode - * Re-OP:Meset autoopchan 4proc Re-OP:Me {nick uhost hand chan mode target} {  global botnick  autoopchan     if {$mode eq "-o" &amp;&amp; [isbotnick $target]} {  if {[string match -nocase "chanserv" $nick] || [matchattr $hand omn|omn $chan] || [string match -nocase "$botnick" $nick]} { return 0 }   if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)  }    set TimeDReop($chan) [list [after [expr {$autoopchan*1000*60}] [list AUTO:OP $botnick $chan]]]  }  if {$mode eq "+o" &amp;&amp; [isbotnick $target]} {  if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)   } }} proc AUTO:OP {nick chan} {   if {[isbotnick $nick] &amp;&amp; ![botisop $chan] &amp;&amp; [onchan $nick $chan]} {  putserv "chanserv op $chan $nick"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Apr 30, 2025 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2025-04-30T10:23:41-04:00</updated>

		<published>2025-04-30T10:23:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113310#p113310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113310#p113310"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113310#p113310"><![CDATA[
try this :<br><div class="codebox"><p>Code: </p><pre><code>bind mode - * Re-OP:Meset autoopchan 4proc Re-OP:Me {nick uhost hand chan mode target} {    global botnick  autoopchan     if {$mode eq "-o" &amp;&amp; [isbotnick $target]} {  if {[string match -nocase "chanserv" $nick] || [matchattr $hand omn|omn $chan] || [string match -nocase "$botnick" $nick]} { return 0 }   if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)  }    set TimeDReop($chan) [list [after [expr {$autoopchan*1000*60}] [list AUTO:OP $botnick $chan]]]  }  if {$mode eq "+o" &amp;&amp; [isbotnick $target]} {  if {[info exists TimeDReop($chan)]} {    after cancel $TimeDReop($chan)    unset TimeDReop($chan)  }}}    proc AUTO:OP {nick chan} {   if {[isbotnick $nick] &amp;&amp; ![botisop $chan] &amp;&amp; [onchan $nick $chan]} {  putserv "chanserv op $chan $nick"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Apr 30, 2025 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2025-04-30T00:40:09-04:00</updated>

		<published>2025-04-30T00:40:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113308#p113308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113308#p113308"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113308#p113308"><![CDATA[
I implemented a killtimer, but I don't know if it will work so that it only asks for auto-reop once and then not again.<br>This is to prevent auto-reop @ abuse in services. Can you please help me?<div class="codebox"><p>Code: </p><pre><code> bind mode - "*-o*" prot_deopset autoopchan 4proc prot_deop {nick uhost hand chan mc argv} { global botnick  autoopchanif {[isbotnick $argv] &amp;&amp; ![matchattr $hand mn|mn $chan]} {killtimer [lindex [split $autoopchan] end] } putnow "chanserv deop $chan $nick"puthelp "PRIVMSG $chan :$nick don't take my away @"timer $autoopchan [list puthelp "cs op $chan $botnick"]   }</code></pre></div>I'm not sure if it will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Apr 30, 2025 12:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2025-04-30T00:51:37-04:00</updated>

		<published>2025-04-30T00:31:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113307#p113307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113307#p113307"/>
		<title type="html"><![CDATA[Re: AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113307#p113307"><![CDATA[
The detail for me is this...<div class="codebox"><p>Code: </p><pre><code> [22:18] * JulieTh sets mode: -o Kantuta[22:18] * ChanServ sets mode: +o Kantuta[22:18] * JulieTh sets mode: -o Kantuta[22:18] -ChanServ:#beni2- Kantuta has deopped JulieTh[22:18] * ChanServ sets mode: +o Kantuta[22:18] * JulieTh sets mode: -o Kantuta[22:18] -ChanServ:#beni2- Kantuta has deopped JulieTh[22:18] * ChanServ sets mode: +o Kantuta[22:18] * JulieTh sets mode: -o Kantuta[22:18] * ChanServ sets mode: -o JulieTh[22:18] * ChanServ sets mode: +o Kantuta[22:18] -ChanServ:#beni2- Kantuta has deopped JulieTh[22:19] &lt;@Kantuta&gt; JulieTh don't take my away @[22:19] &lt;@Kantuta&gt; JulieTh don't take my away @[22:19] &lt;@Kantuta&gt; JulieTh don't take my away @[22:19] &lt;@Kantuta&gt; JulieTh don't take my away @ </code></pre></div> <br>causing abuse in services...<br>The solution for me is to add a killtimer to kill the time sequence and prevent it from abusing auto reop in services.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Apr 30, 2025 12:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2025-04-30T00:30:11-04:00</updated>

		<published>2025-04-30T00:30:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113306#p113306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113306#p113306"/>
		<title type="html"><![CDATA[AutoReop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113306#p113306"><![CDATA[
I have this TCL and when temporary operator access is removed, the TCL uses a recovery time of 4 minutes.<div class="codebox"><p>Code: </p><pre><code> bind mode - "*-o*" prot_deopproc prot_deop {nick uhost hand chan mc argv} { global botnick if {[isbotnick $argv] &amp;&amp; ![matchattr $hand mn|mn $chan]} {  putnow "chanserv deop $chan $nick"putserv "PRIVMSG $chan :$nick don't take my away @"  timer 4 [list puthelp "cs op $chan $botnick"]  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Apr 30, 2025 12:30 am</p><hr />
]]></content>
	</entry>
	</feed>
