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

	<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-07-19T01:40:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-07-19T01:40:12-04:00</updated>

		<published>2002-07-19T01:40:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8980#p8980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8980#p8980"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8980#p8980"><![CDATA[
wow I learn something everyday.<br><br>I wonder if that respects reserved-portrange though ... hope so since I wrote that setting ...<br><br>Jeff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Fri Jul 19, 2002 1:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-19T00:51:05-04:00</updated>

		<published>2002-07-19T00:51:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8978#p8978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8978#p8978"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8978#p8978"><![CDATA[
yes it return a port <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>and now it's work perfectly thansk you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Fri Jul 19, 2002 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-07-18T19:20:46-04:00</updated>

		<published>2002-07-18T19:20:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8973#p8973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8973#p8973"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8973#p8973"><![CDATA[
couple of issues:<br><br>one: the address in the DCC CHAT longip port must be the bot's address .. not the user's ..<br><br>two: listen 0 .. I don't believe that returns a port does it?<br><br>anyways, here is an example:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !fakedcc pub:fakedccproc findopenport {} {  global reserved-portrange  scan ${reserved-portrange} "%d:%d" lower upper  for {$i = $lower} {$i &lt; $upper} {incr i} {    if {![catch {socket -server blah $i] fd]} {      close $fd      return $i    }  }  error "no ports available"}proc pub:fakedcc {nick uhost hand chan arg} {  if {[catch {findopenport} port]} {    puthelp "NOTICE $nick :Cannot dcc chat you since I can't find an open ort"    putlog "No open ports to dcc chat $nick!$uhost"    return 0  } {    listen $port script "dcc:incoming $port" pub    puthelp "NOTICE $nick :Sending you a dcc chat ..."    puthelp "PRIVMSG $nick :\001DCC CHAT chat [myip] $port\001"  }}proc dcc:incoming {port idx} {   control $idx dcc:text   listen $port off}proc dcc:text {idx text} {  if {$text == ""} {    return 0  }  putlog "Text from $idx: $text"}</code></pre></div>Jen wanted to insert this happy face  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"> this code is completely untested .. but it should work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Thu Jul 18, 2002 7:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-18T09:20:16-04:00</updated>

		<published>2002-07-18T09:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8955#p8955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8955#p8955"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8955#p8955"><![CDATA[
May you write me an example because i've try many possibility and nothing work<br><br>if you show me an example i will understand. And if you talk french i would be better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>or write it in english  thanks you<p>Statistics: Posted by Guest — Thu Jul 18, 2002 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-07-18T04:53:58-04:00</updated>

		<published>2002-07-18T04:53:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8947#p8947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8947#p8947"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8947#p8947"><![CDATA[
The problem is with your DNS lookup command.<br><br>It is not designed to return the reply on the spot.<br><br>You pass it the address to lookup, and the script to pass the reply to. Simalar to the way you tell the listen command to call a script, once a connection has been made.<br><br>The dnslookup command is asyncronous (spelling?), meaning, once called, it will do the lookup in the background, allowing the bot to continue working. Once the reply is known, it calls the script, and finishes off.<br><br>You would have to send the CTCP message in the lookup command, rather than in the first portion of the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jul 18, 2002 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-07-17T20:31:54-04:00</updated>

		<published>2002-07-17T20:31:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8938#p8938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8938#p8938"/>
		<title type="html"><![CDATA[Dcc Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8938#p8938"><![CDATA[
i have write a script on dcc chat request like: putserv "PRIVMSG $nick :\001DCC CHAT chat $ip $port\001" and he reply me<br>Client: Idiotbot (0.0.0.24)<br>Time: Thu Jul 18 20:18:20 2002<br>-<br>Acknowledging chat request...<br>-<br>Unable to connect<br>-<br>DCC session closed<br><br>and all is write in programmation i will paste you the code.<br><br><br><br>bind pub - !fserv PubFserv<br><br>proc PubFserv {nick host hand chan arg} {<br>putserv "NOTICE $nick :Initiating DCC chat..."<br>set port [listen 0 script "Onytron:grab [split $nick] [split $host] pub"]<br>putserv "PRIVMSG $nick :\001DCC CHAT chat [dnslookup [lindex [split $host @] 1] Onytron:lookup] $port"<br>return 0<br>}<br><br><br>proc Onytron:grab {nick host idx} {<br>global botnick<br>putdcc $idx "Connection a $botnick..."<br>putdcc $idx "Connection accepter ..."<br>control $idx "Onytron:FTF [split $nick] [split $host] [split $port]"<br>putdcc $idx "$tcontrol"<br>return 0<br>}<br><br>proc Onytron:FTF {nick host port idx text} {<br>putdcc $idx "Bienvenu sur le Fserv de Onytron"<br>}<br><br>proc Onytron:lookup {ip host status} {<br><br>return $ip<br>}<br><br><br>if you have the answer tell me please i search it since 2 weeks.<p>Statistics: Posted by Guest — Wed Jul 17, 2002 8:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
