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

	<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>2013-05-08T12:47:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[krouser]]></name></author>
		<updated>2013-05-08T12:47:41-04:00</updated>

		<published>2013-05-08T12:47:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101471#p101471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101471#p101471"/>
		<title type="html"><![CDATA[Catching IPs from text file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101471#p101471"><![CDATA[
thanks a lot <strong class="text-strong">caesar</strong>! im lookin forward to try it out.. and you are right <strong class="text-strong">willyw</strong> it would but I need to check exactly how this whole .txt string matching thing works.. still learning here <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=12230">krouser</a> — Wed May 08, 2013 12:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-05-08T09:11:27-04:00</updated>

		<published>2013-05-08T09:11:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101470#p101470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101470#p101470"/>
		<title type="html"><![CDATA[Catching IPs from text file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101470#p101470"><![CDATA[
The ability to store bans is built in Eggdrop.  Won't this do it?<br><br><a href="http://www.egghelp.org/commands/channels.htm#+ban" class="postlink">http://www.egghelp.org/commands/channels.htm#+ban</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed May 08, 2013 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2013-05-08T09:20:00-04:00</updated>

		<published>2013-05-08T09:08:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101469#p101469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101469#p101469"/>
		<title type="html"><![CDATA[Catching IPs from text file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101469#p101469"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join * * ip:checkproc ip:check {nick uhost hand chan} {if {[isbotnick $nick] || [validuser $hand]} returnset ip [lindex [split $uhost "@"] 1]set fh [open "ips.txt"]while {[gets $fh line] &gt;= 0} {if {[string equal -nocase $line $ip]} {incr matchbreak}}close $fhif {[info exists match]} {pushmode $chan +b $ip}}</code></pre></div>this would work for all channels the bot is on, but if you wish to make it work just on a single channel and you won't change your mind any time soon then change:<div class="codebox"><p>Code: </p><pre><code>bind join * * ip:check</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>bind join "#mychan *" * ip:check</code></pre></div>Edit: typo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed May 08, 2013 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krouser]]></name></author>
		<updated>2013-05-08T06:54:13-04:00</updated>

		<published>2013-05-08T06:54:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101468#p101468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101468#p101468"/>
		<title type="html"><![CDATA[Catching IPs from text file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101468#p101468"><![CDATA[
Hi guys, can someone show me if it is possible to catch/match IPs that were previously saved on a .txt file and trigger a ban on that IP for a certain amount of time?<br><br>Thanks in advance!  <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=12230">krouser</a> — Wed May 08, 2013 6:54 am</p><hr />
]]></content>
	</entry>
	</feed>
