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

	<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>2004-10-31T14:00:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-10-31T14:00:19-04:00</updated>

		<published>2004-10-31T14:00:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42435#p42435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42435#p42435"/>
		<title type="html"><![CDATA[accept listen script only from a ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42435#p42435"><![CDATA[
Here's a proc to find the host matching a idx, it should help you on the way.<div class="codebox"><p>Code: </p><pre><code>proc findidxhost {idx} {  foreach c [dcclist script] {    if {[lindex $c 0] == $idx} {      return "[lindex $c 2]"    }              }     return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Oct 31, 2004 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-10-31T13:58:02-04:00</updated>

		<published>2004-10-31T13:58:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42434#p42434</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42434#p42434"/>
		<title type="html"><![CDATA[accept listen script only from a ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42434#p42434"><![CDATA[
i suppose you could do something like this<br><div class="codebox"><p>Code: </p><pre><code>listen 12345 script conngrab proc conngrab {newidx} {   utimer [expr ${::ident-timeout} + 5] [list control $newidx connmsg]} proc connmsg {idx msg} {   if {[lindex [split [lindex [lindex [dcclist script] 0] 2] @] 1] == "ip"} {    putlog "idx: $idx, msg: $msg"  }  killdcc $idx}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Sun Oct 31, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-31T11:58:57-04:00</updated>

		<published>2004-10-31T11:58:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42431#p42431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42431#p42431"/>
		<title type="html"><![CDATA[accept listen script only from a ip]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42431#p42431"><![CDATA[
Hello,<br><br>im searching of a way to accept connections for a telnet port only from a given ip adress. How is this possible? My tcl code bellow, now i want that only from a specified ip that connection could be established or drop it imediate if is not from that ip.<br><br>listen 12345 script conngrab<br><br>proc conngrab {newidx} {<br>  control $newidx connmsg<br>}<br><br>proc connmsg {idx msg} {<br>  putlog "idx: $idx, msg: $msg"<br>  return 0 <br>}<br><br>thanx, noid<p>Statistics: Posted by Guest — Sun Oct 31, 2004 11:58 am</p><hr />
]]></content>
	</entry>
	</feed>
