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

	<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>2007-10-24T17:54:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[neoHUNTER]]></name></author>
		<updated>2007-10-24T17:54:52-04:00</updated>

		<published>2007-10-24T17:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77087#p77087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77087#p77087"/>
		<title type="html"><![CDATA[nice.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77087#p77087"><![CDATA[
Wow I just tried it and it seems to be working fine.  Thanks man...Problem solved...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9395">neoHUNTER</a> — Wed Oct 24, 2007 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-23T20:17:55-04:00</updated>

		<published>2007-10-23T20:17:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77050#p77050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77050#p77050"/>
		<title type="html"><![CDATA[help me with this script plz...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77050#p77050"><![CDATA[
Unfortunately not, as it opens multiple sockets, one for each port checked.<br>Then, whenever any of those sockets becomes writable, it'll post the notice and do other actions aswell.<br><br>The added check should do the trick nevertheless.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Oct 23, 2007 8:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-10-23T17:21:37-04:00</updated>

		<published>2007-10-23T17:21:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77048#p77048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77048#p77048"/>
		<title type="html"><![CDATA[help me with this script plz...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77048#p77048"><![CDATA[
It might be because the socket does not get closed quick enough before another packet gets sent to the handler...<br><br>Try something like this:<br><div class="codebox"><p>Code: </p><pre><code>proc scan_join {nick host hand chan} {variable banport; variable handleif {[matchattr $hand $handle|$handle $chan]} {return}set hostname [lindex [split $host \x40] end]foreach {x} [split $banport \x2c] {if {![catch {socket -async $hostname $x} s]} {set ::queue($nick:$s) "$x"fileevent $s writable [list [namespace current]::check_sock $s $host $chan$nick]}}}#################################### fileevent callback###################################proc check_sock {s host chan nick} {variable backchanif {![info exists ::queue($nick:$s)]} { return }if {[string equal {} [fconfigure $s -error]]} {unset ::queue($nick:$s)putserv "NOTICE $backchan :$nick is using proxies.\($host\)"close $s} else {unset ::queue($nick:$s)pushmode $chan +v $nick}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Oct 23, 2007 5:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoHUNTER]]></name></author>
		<updated>2007-10-23T05:58:21-04:00</updated>

		<published>2007-10-23T05:58:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77032#p77032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77032#p77032"/>
		<title type="html"><![CDATA[help me with this script plz...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77032#p77032"><![CDATA[
Can anybody change this script, scan user upon join if their ports are open using the proxy and voicing only those whose ports are close.  When the bot finds out that the port is open, it will notice the user.  This is the original script:<br><br>#preference.<br>###################################<br><br>variable banport "1080,1081,3380,3381" ;# Enter most common port list<br>variable backchan "#enter backchannel"<br>### Having E handle will make the bot to ignore that person.<br>variable handle "E"<br><br><br>###################################<br># Do not edit below<br>###################################<br><br>###################################<br># Join bind<br>###################################<br><br>proc scan_join {nick host hand chan} {<br>variable banport; variable handle<br>if {[matchattr $hand $handle|$handle $chan]} {return}<br>set hostname [lindex [split $host \x40] end]<br>foreach {x} [split $banport \x2c] {<br>if {![catch {socket -async $hostname $x} s]} {<br>fileevent $s writable [list [namespace current]::check_sock $s $host $chan<br><br>$nick]<br>}<br>}<br>}<br><br>###################################<br># fileevent callback<br>###################################<br><br>proc check_sock {s host chan nick} {<br>variable backchan<br>if {[string equal {} [fconfigure $s -error]]} {<br>putserv "NOTICE $backchan :$nick is using proxies.\($host\)"<br>close $s<br>} else {<br>pushmode $chan +v $nick<br>}<br>}<br><br>bind join - * [namespace current]::scan_join<br>###############################END##############<br><br>This is the effect of the script:<br><br>* Ergoth has joined #samplechan<br>-DoomsDay:#samplechan- Ergoth is using proxies.(~ergoth@221.209.18.1)<br>-DoomsDay:#samplechan- Ergoth is using proxies.(~ergoth@221.209.18.1)l<br>-DoomsDay:#samplechan- Ergoth is using proxies.(~ergoth@221.209.18.1)<br>-DoomsDay:#samplechan- Ergoth is using proxies.(~ergoth@221.209.18.1)<br>-DoomsDay:#samplechan- Ergoth is using proxies.(~ergoth@221.209.18.1) <br><br>It doesnt stop noticing the channel.  Could anybody help me with this please...Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9395">neoHUNTER</a> — Tue Oct 23, 2007 5:58 am</p><hr />
]]></content>
	</entry>
	</feed>
