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

	<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>2009-11-23T00:43:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2009-11-23T00:43:48-04:00</updated>

		<published>2009-11-23T00:43:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91015#p91015</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91015#p91015"/>
		<title type="html"><![CDATA[unban all bans in userlist.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91015#p91015"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind dcc n clearbans ex_clearbansproc ex_clearbans {hand idx arg} {  putcmdlog "#$hand# clearbans $arg"  set chan [lindex [split $arg] 0]  if {$chan == ""} {    putidx $idx "Usage: clearbans &lt;channel|-global|-all&gt; \[creator\]" ; return 0  }  set remove [lindex [split $arg] 1]  if {$chan == "-all"} {    set gcount 0 ; set ccount 0    foreach ban [banlist] {      if {$remove != ""} {        if {[string tolower [lindex $ban 5]] == [string tolower $remove]} {          killban [lindex $ban 0] ; incr gcount        }      } else {        killban [lindex $ban 0] ; incr gcount      }    }    foreach banchan [channels] {      foreach ban [banlist $banchan] {        if {$remove != ""} {          if {[string tolower [lindex $ban 5]] == [string tolower $remove]} {            killchanban $banchan [lindex $ban 0] ; incr ccount          }        } else {           killchanban $banchan [lindex $ban 0] ; incr ccount        }      }    }    if {$remove != ""} {      putidx $idx "Removed $gcount global and $ccount channel [nb_plural ban bans $ccount] set by $remove."    } else {      putidx $idx "Removed $gcount global and $ccount channel [nb_plural ban bans $ccount]."    }  } elseif {$chan == "-global"} {    set count 0    foreach ban [banlist] {      if {$remove != ""} {        if {[string tolower [lindex $ban 5]] == [string tolower $remove]} {          killban [lindex $ban 0] ; incr count        }      } else {        killban [lindex $ban 0] ; incr count      }    }    if {$remove != ""} {      putidx $idx "Removed $count global [nb_plural ban bans $count] set by $remove."    } else {      putidx $idx "Removed $count global [nb_plural ban bans $count]."    }  } elseif {[string trim [string index $chan 0] "#+&amp;!"] == ""} {    if {![validchan $chan]} {      putidx $idx "$chan is not a valid channel."    } else {      set count 0      foreach ban [banlist $chan] {        if {$remove != ""} {          if {[string tolower [lindex $ban 5]] == [string tolower $remove]} {            killchanban $chan [lindex $ban 0] ; incr count          }        } else {          killchanban $chan [lindex $ban 0] ; incr count        }      }      if {$remove != ""} {        putidx $idx "Removed $count $chan [nb_plural ban bans $count] set by $remove."      } else {        putidx $idx "Removed $count $chan [nb_plural ban bans $count]."      }    }  }  return 0}proc nb_plural {word plural llength} {  if {$llength != 1} {    return $plural  }  return $word}</code></pre></div><div class="codebox"><p>Code: </p><pre><code>.clearbans #channel [creator]## remove all bans on #channel or only those set by [creator].clearbans -global [creator]## remove all global bans or only those set by [creator].clearbans -all [creator]## remove all bans or only those set by [creator]</code></pre></div><br>From extra.tcl and netbots.tcl (components of netbots scripts by slennox)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Mon Nov 23, 2009 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2009-10-30T13:39:59-04:00</updated>

		<published>2009-10-30T13:39:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=90696#p90696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=90696#p90696"/>
		<title type="html"><![CDATA[unban all bans in userlist.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=90696#p90696"><![CDATA[
hi guys.<br><br>Can someone make a script for unban all bans in userlist of my eggdrop?<br><br>Because:<br><div class="codebox"><p>Code: </p><pre><code>.bans #chan *&lt;Modo&gt; ! [1] *!*@201.250.147.32 (perm)&lt;Modo&gt;         Op1: You are probably infected! Get your computer clean on #dmsetup&lt;Modo&gt;         Created 2 days ago, last used 2 days ago.................bla bla bla&lt;Modo&gt; ! [2604] *!*@201.240.25.6 (perm)&lt;Modo&gt;         Op4: You are probably infected! Get your computer clean on #dmsetup&lt;Modo&gt;         Created 4 days ago.................bla bla bla&lt;Modo&gt; ! [4613] *!*@190.50.111.90 (perm)&lt;Modo&gt;         Op2: You are probably infected! Get your computer clean on #dmsetup&lt;Modo&gt;         Created 4 days ago&lt;Modo&gt; ! [4614] *!*@190.173.213.81 (perm)&lt;Modo&gt;         Op7: You are probably infected! Get your computer clean on #dmsetup&lt;Modo&gt;         Created 4 days ago</code></pre></div>so i have 4614 bans in userlist, and i want that with one public command remove all this bans. maybe !erasebans.<br><br>I don't want use: .-ban #chan *!*@... for every ban, u know.<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Fri Oct 30, 2009 1:39 pm</p><hr />
]]></content>
	</entry>
	</feed>
