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

	<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>2022-08-12T15:40:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-12T15:40:51-04:00</updated>

		<published>2022-08-12T15:40:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111280#p111280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111280#p111280"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111280#p111280"><![CDATA[
Thanks SpiKe^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Aug 12, 2022 3:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-08-12T10:36:19-04:00</updated>

		<published>2022-08-12T10:36:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111279#p111279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111279#p111279"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111279#p111279"><![CDATA[
Yup, the script ends up being quite network/server specific.<blockquote class="uncited"><div>According to the list I use, the replies can be very different... &lt;setter&gt;, &lt;time left&gt; and &lt;reason&gt; are additions used by various servers.</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Aug 12, 2022 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-12T03:30:05-04:00</updated>

		<published>2022-08-12T03:30:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111278#p111278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111278#p111278"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111278#p111278"><![CDATA[
tried this and it seems to work not sure if i done it proper tho:<br><blockquote class="uncited"><div>         lassign [split $text] bot chan mask setter<br>         set setter [string tolower [lindex [split $setter !] 0]]</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Aug 12, 2022 3:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-12T03:14:33-04:00</updated>

		<published>2022-08-12T03:14:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111277#p111277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111277#p111277"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111277#p111277"><![CDATA[
did another 2 tests on my own testnet and on dalnet and on dalnet it doesnt seem to work after i consulted raw 367 on dalnet i found the issue:<br><br><br>this is the output for dalnet raw 367:<br><blockquote class="uncited"><div> lair.nl.eu.dal.net 367 Cappuccino #channel *!*@DALnet-kx6.971.66.73.IP Cappuccino!~<a href="mailto:IRC@saffouane.powered.by.lunarbnc.net">IRC@saffouane.powered.by.lunarbnc.net</a> 1660288035</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Aug 12, 2022 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-11T21:59:07-04:00</updated>

		<published>2022-08-11T21:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111275#p111275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111275#p111275"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111275#p111275"><![CDATA[
tested again and for some reason if i use a non existing nick it still removes all bans like <br><blockquote class="uncited"><div> !cb kjshjfuye </div></blockquote>while  removing all bans should only be done with !cb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Aug 11, 2022 9:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-11T21:49:20-04:00</updated>

		<published>2022-08-11T21:49:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111274#p111274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111274#p111274"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111274#p111274"><![CDATA[
tested again with all other scripts unloaded seems to work fine thanks SpiKe^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Aug 11, 2022 9:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-08-11T20:16:51-04:00</updated>

		<published>2022-08-11T20:16:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111273#p111273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111273#p111273"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111273#p111273"><![CDATA[
that code seems fine to me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Aug 11, 2022 8:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-11T19:12:49-04:00</updated>

		<published>2022-08-11T19:12:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111272#p111272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111272#p111272"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111272#p111272"><![CDATA[
Thanks SpiKe^^  i loaded the code and tested it and it doesnt seem to react and am not gettin any error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Aug 11, 2022 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-08-11T18:18:06-04:00</updated>

		<published>2022-08-11T18:18:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111271#p111271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111271#p111271"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111271#p111271"><![CDATA[
Try this...<div class="codebox"><p>Code: </p><pre><code>set clearbans(max) 6bind pub n !cb clear:bans2021 proc clear:bans2021 {nick uhost hand chan text} {    global clearbans nickoutput clearnicks   set clearnicks [split [string trim [string tolower $text]]]   set chan [string tolower $chan]    set nickoutput [string tolower $nick]    if {![botisop $chan]} return    set clearbans($chan) {}    bind raw - 367 cb:bind:raw2021    bind raw - 368 cb:bind:raw2021    putnow "MODE $chan b" } proc cb:bind:raw2021 {from key text} {    global clearbans nickoutput clearnicks   switch -- $key {       367 {          lassign [split $text] bot chan mask setter         set setter [string tolower $setter]         set chan [string tolower $chan]          if {![info exists clearbans($chan)]} return          if {[lsearch $clearbans($chan) $mask] &gt; -1} return          if {![llength $clearnicks] || $setter in $clearnicks} {           lappend clearbans($chan) $mask          }       }       368 {          lassign [split $text] bot chan          set chan [string tolower $chan]          if {![info exists clearbans($chan)]} return          unbind raw - 367 cb:bind:raw2021          unbind raw - 368 cb:bind:raw2021          set len [llength $clearbans($chan)]          set total 0          if {$len &gt; 0} {             while {$len &gt; 0} {                if {$len &gt; $clearbans(max)} {                   set mode [string repeat "b" $clearbans(max)]                   set masks [join [lrange $clearbans($chan) 0 [expr {$clearbans(max) - 1}]]]                   set clearbans($chan) [lrange $clearbans($chan) $clearbans(max) end]                   incr len -$clearbans(max)                   incr total $clearbans(max)                } else {                   set mode [string repeat "b" $len]                   set masks [join $clearbans($chan)]                   incr total $len                    set len 0                }                puthelp "MODE $chan -$mode $masks"             }             if {![llength $clearnicks]} {               puthelp "notice $nickoutput :Removed $total bans. $chan Ban list is cleared."             } else {                puthelp "notice $nickoutput :Removed $total bans in $chan. Cleared all bans set by: [join $clearnicks]."             }          } else {            putserv "NOTICE $nickoutput :\00300,04 No bans to clear from [bold][yellow] $chan. [end]"         }          unset clearbans($chan)  ;  unset nickoutput clearnicks      }    } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Aug 11, 2022 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-11T01:29:38-04:00</updated>

		<published>2022-08-11T01:29:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111269#p111269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111269#p111269"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111269#p111269"><![CDATA[
thanks for the response SpiKe^^<br><br>output of raw 367 is : <br><blockquote class="uncited"><div>irc.blah.com 367 Simo #channel *!*@cloaked-25lhta.contaboserver.net Hawk :1659848122</div></blockquote>in the raw i also tried <br><div class="codebox"><p>Code: </p><pre><code>lassign [split $text] bot chan chanops</code></pre></div>to get the chanops out of the raw (the one who set the ban) seems to work for the raw part now i need to find for the bind pub part and use in the raw event to compare<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Aug 11, 2022 1:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-08-10T21:06:08-04:00</updated>

		<published>2022-08-10T21:06:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111268#p111268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111268#p111268"/>
		<title type="html"><![CDATA[Show your raw 367 reply...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111268#p111268"><![CDATA[
Show your raw 367 reply...<br><br>According to the list I use, the replies can be very different... &lt;setter&gt;, &lt;time left&gt; and &lt;reason&gt; are additions used by various servers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Aug 10, 2022 9:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-10T12:10:16-04:00</updated>

		<published>2022-08-10T12:10:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111267#p111267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111267#p111267"/>
		<title type="html"><![CDATA[clear bans set by certain chanop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111267#p111267"><![CDATA[
greetz gentz,<br><br>we used this code to clear all bans from channel banlist<br>and i was wondering about how to edit it to have it clear all bans if no chanop is  provided or only clear bans set by certain chanops like for example :<br><blockquote class="uncited"><div>!cb </div></blockquote>to remove all channel bans <br><br>or <br><blockquote class="uncited"><div>!cb someopnick  someopnick1  someopnick3 </div></blockquote>to only remove channel bans set by someopnick  someopnick1  someopnick3<br><br><div class="codebox"><p>Code: </p><pre><code>set clearbans(max) 6bind pub n !cb clear:bans2021 proc clear:bans2021 {nick uhost hand chan text} {    global clearbans nickoutput   set chan [string tolower $chan]    set nickoutput [string tolower $nick]    if {![botisop $chan]} return    set clearbans($chan) {}    bind raw - 367 cb:bind:raw2021    bind raw - 368 cb:bind:raw2021    putnow "MODE $chan b" } proc cb:bind:raw2021 {from key text} {    global clearbans nickoutput   switch -- $key {       367 {          lassign [split $text] bot chan mask          set chan [string tolower $chan]          if {![info exists clearbans($chan)]} return          if {[lsearch $clearbans($chan) $mask] &gt; -1} return          lappend clearbans($chan) $mask       }       368 {          lassign [split $text] bot chan          set chan [string tolower $chan]          if {![info exists clearbans($chan)]} return          unbind raw - 367 cb:bind:raw2021          unbind raw - 368 cb:bind:raw2021          set len [llength $clearbans($chan)]          set total 0          if {$len &gt; 0} {             while {$len &gt; 0} {                if {$len &gt; $clearbans(max)} {                   set mode [string repeat "b" $clearbans(max)]                   set masks [join [lrange $clearbans($chan) 0 [expr {$clearbans(max) - 1}]]]                   set clearbans($chan) [lrange $clearbans($chan) $clearbans(max) end]                   incr len -$clearbans(max)                   incr total $clearbans(max)                } else {                   set mode [string repeat "b" $len]                   set masks [join $clearbans($chan)]                   incr total $len                    set len 0                }                puthelp "MODE $chan -$mode $masks"             }          } else { putserv "NOTICE $nickoutput :\00300,04 No bans to clear from [bold][yellow] $chan. [end]" ; return         }          puthelp "notice $nickoutput :Removed $total bans. $chan Ban list is cleared."       }    } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Aug 10, 2022 12:10 pm</p><hr />
]]></content>
	</entry>
	</feed>
