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

	<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-11-23T12:03:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demetrius_reis]]></name></author>
		<updated>2013-11-23T12:03:59-04:00</updated>

		<published>2013-11-23T12:03:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102237#p102237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102237#p102237"/>
		<title type="html"><![CDATA[Test gameports]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102237#p102237"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># results formatset nickchan "nick/#chan"# channelset scanchan "#agemania"# inform portsset port "2300 47624"bind join - * scanbind join - !scanset ver "v1.0"proc scan {nick uhost hand chan} {global botnick nickchan port scanchanset scanport [lindex [split $uhost @] 1]set scanportfound ""if {([lsearch -exact [string tolower $scanchan] [string tolower $chan]] != -1)} {catch {socket $scanport $port} sportif {([string range $sport 0 3] == "sock") &amp;&amp; ([lindex $sport 1] == "")} {close $sportlappend scanportfound "1"}if {$scanportfound == ""} {set scanportfound "0"}if {[string match $scanportfound [string tolower 1]]} {putserv "PRIVMSG $nickchan :Nick &lt;$nick&gt; Host &lt;$scanport&gt; Port &lt;$port&gt; Chan &lt;$chan&gt;"return  } }}</code></pre></div><br>This script is based on testing whether the user who entered the channel is suspect anyway, then automatically evaluates eggdrop its doors as discrimidas. But I would like to modify in order to assess whether the specific ports show that the user is ready to play.<br><br>example: !scan &lt;ip address&gt;<br>Thus eggdrop replies doors are liberated to play, otherwise it answers no.<br><br>Can anyone help finalize?<br>Thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11312">demetrius_reis</a> — Sat Nov 23, 2013 12:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
