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

	<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>2002-12-15T01:54:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-15T01:54:43-04:00</updated>

		<published>2002-12-15T01:54:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14273#p14273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14273#p14273"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14273#p14273"><![CDATA[
Well good new's is I got it working heheh. YAY<br><br><br>Thanks for all the help!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sun Dec 15, 2002 1:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-14T18:22:30-04:00</updated>

		<published>2002-12-14T18:22:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14270#p14270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14270#p14270"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14270#p14270"><![CDATA[
Wow so my first guess when I edited the post was more on the right track than I thought.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Sat Dec 14, 2002 6:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-12-14T07:50:46-04:00</updated>

		<published>2002-12-14T07:50:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14258#p14258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14258#p14258"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14258#p14258"><![CDATA[
if you read about the banlist command in the tcl-commands.doc it does not return any number on the bans, it returns hostmask, time set,time left etc...<br>so what you are looking for is something like:<div class="codebox"><p>Code: </p><pre><code>proc kill:bans {min hour day month year} {   foreach x [banlist #somechan] {     killchanban #somechan [lindex $x 0]   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat Dec 14, 2002 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2002-12-13T22:41:16-04:00</updated>

		<published>2002-12-13T22:41:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14252#p14252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14252#p14252"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14252#p14252"><![CDATA[
but afaik eggdrop renumbers the bans when you kill ban 1.<br>so what was previously ban 2 is ban1 when the 'old' ban1 is removed.<br><br>i could be wrong but ppslim will correct any wrongness from anyone<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Dec 13, 2002 10:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-12T12:30:21-04:00</updated>

		<published>2002-12-12T12:30:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14219#p14219</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14219#p14219"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14219#p14219"><![CDATA[
ah I see, so the proc would look something like this?<br><div class="codebox"><p>Code: </p><pre><code>proc kill:bans {min hour day month year} {    foreach chan [channels] {killchanban $chan 1}</code></pre></div>This would only kill ban 1, not clear them all right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Thu Dec 12, 2002 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-12-12T12:17:55-04:00</updated>

		<published>2002-12-12T12:17:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14217#p14217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14217#p14217"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14217#p14217"><![CDATA[
just use foreach on the banlist<br><br>read about foreach here: <a href="http://www.suninet.nl/tclguide/index.php?chap=10&amp;pg=2" class="postlink">http://www.suninet.nl/tclguide/index.php?chap=10&amp;pg=2</a>[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Dec 12, 2002 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-12T11:53:24-04:00</updated>

		<published>2002-12-12T11:53:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14216#p14216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14216#p14216"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14216#p14216"><![CDATA[
I looked at the clearbans tcl, I noticed it used the timing format like ppslim said. Im gonna try some things out. <br><br><br>Is there a way to kill all the bans at once? or am I going to have to run through killchanban 1 and loop that say 35 times?<br><br>Well I guess I could have it clear until there is no longer a ban 1?<br><br><br>That would require checking to see if something is true or false. <br><br>Im new to this so im trying to learn here and the best way its hands on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Thu Dec 12, 2002 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-12-12T09:41:13-04:00</updated>

		<published>2002-12-12T09:41:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14211#p14211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14211#p14211"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14211#p14211"><![CDATA[
Yep!<br>My mistake... thanks ppslim  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Thu Dec 12, 2002 9:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-12-12T05:54:30-04:00</updated>

		<published>2002-12-12T05:54:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14203#p14203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14203#p14203"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14203#p14203"><![CDATA[
Just a note:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "30 * *" intbans:bind</code></pre></div>This will not trigger every 30 mins. More like every 30 mins past the hour, thus only once per hour.<br><br>You can crate two bind to the same proc, to do this. IE<br><div class="codebox"><p>Code: </p><pre><code>bind time - "30 * *" intbans:bindbind time - "00 * *" intbans:bind</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Dec 12, 2002 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2002-12-12T03:39:37-04:00</updated>

		<published>2002-12-12T03:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14196#p14196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14196#p14196"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14196#p14196"><![CDATA[
You will want to use bind time so that the bot acts every 30 minutes.<br>When the bot acts, it needs to loop through the internal ban list and kill the bans 1 by 1.<br><br><br>To bind the time to a procedure you need to read about<blockquote class="uncited"><div>    <br>         bind time &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         proc-name &lt;minute&gt; &lt;hour&gt; &lt;day&gt; &lt;month&gt; &lt;year&gt;<br><br>         Description: allows you to schedule procedure calls at certain<br>           times. mask matches 5 space separated integers of the form:<br>           "minute hour day month year". minute, hour, day, month have a<br>           zero padding so they are exactly two characters long; year is<br>           extended to four characters in the same way.<br>         Module: core</div></blockquote>Example (to execute a code every 30 minutes):<div class="codebox"><p>Code: </p><pre><code>bind time - "30 * *" intbans:bind proc intbans:bind {min hour day month year} {   &lt;your_code_to_loop_through_the_internal_bans_goes_here&gt;}</code></pre></div> <br><br>-------------------<br><br>To get a list of all internal bans you need to use "banlist"<blockquote class="uncited"><div>  banlist [channel]<br>    Returns: a list of global bans, or, if a channel is specified, a<br>      list of channel-specific bans. Each entry is a sublist containing:<br>      hostmask, comment, expiration timestamp, time added, last time<br>      active, and creator. The three timestamps are in unixtime format.<br>    Module: channels</div></blockquote>-------------------<br><br>As for removing internal bans, there are 2 types of internal bans.<br><br>1- Global internal bans that apply to any channel the bot is monitoring<br>    To remove them you need to use "killban"<blockquote class="uncited"><div>     killban &lt;ban&gt;<br>      Description: removes a ban from the global ban list<br>      Returns: 1 on success; 0 otherwise<br>      Module: channels</div></blockquote>2- Channel specific bans that apply only to a specific channel.<br>    To remove them you need to use "killchanban"<blockquote class="uncited"><div>    killchanban &lt;channel&gt; &lt;ban&gt;<br>     Description: removes a ban from the ban list for a channel<br>     Returns: 1 on success; 0 otherwise<br>     Module: channels</div></blockquote>-------------------<br><br>z_one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Thu Dec 12, 2002 3:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Gothic-Angel]]></name></author>
		<updated>2002-12-11T21:21:47-04:00</updated>

		<published>2002-12-11T21:21:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14189#p14189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14189#p14189"/>
		<title type="html"><![CDATA[Removing Internal bans???]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14189#p14189"><![CDATA[
Ok I wanna write a tcl to remove all bans in the internal banlist every 30 mins.<br><br>Im not sure where I'd start so if someone wants to tip me off on where to start. I looked around on sunninet for help there, but he doesn't cover the banning process which is what I need to undo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1949">Gothic-Angel</a> — Wed Dec 11, 2002 9:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
