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

	<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>2003-12-06T17:39:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-06T17:39:40-04:00</updated>

		<published>2003-12-06T17:39:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31139#p31139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31139#p31139"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31139#p31139"><![CDATA[
ok i got the nick imported but i have one problem, if 2 users send dcc request one after an other, then the nick is messed up .. like i type !trigger and one second later second user !trigger the first one has the same nick as the second one .. how do i solve that ?? <br><div class="codebox"><p>Code: </p><pre><code>listen 4000 script listen:start proc ...{}{   putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] 4000\001"   set ::dccnick $nick} proc listen:start {idx} {   set dccnick($idx) $::dccnick  control $idx [list listen:control $dccnick($idx)]} proc listen:control {nick fidx arg} {  ....[script].... }</code></pre></div>could i some how delay the dcc chat of the second if i would so<br><blockquote class="uncited"><div>if control active delay or something</div></blockquote> <br><br>cause if i where to delay both same thing would happen only later .. so there is no point on doing that ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Dec 06, 2003 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-06T16:10:47-04:00</updated>

		<published>2003-12-06T16:10:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31133#p31133</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31133#p31133"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31133#p31133"><![CDATA[
this array thing how does that work ..? my script working all i need is this then its almost done ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Dec 06, 2003 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-05T10:34:56-04:00</updated>

		<published>2003-12-05T10:34:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31102#p31102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31102#p31102"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31102#p31102"><![CDATA[
[dcclist] with the host won't work i tought of that what if the ircd has crypted hosts, a connect or listen command with control .. uses telnet (not crypted), ...<br><br>the array thing .. well not sur what u mean by it but the listen is used in the script liket this<br><blockquote class="uncited"><div>listen 4000 script listen:start</div></blockquote>outside the proc .. so ... <br><br>the array thing won't work either i think ..... but it was a nice idea tho, ..<br><br>unless i can send it to the control proc some how, also $nick = $botnick if i use it like that and if i would global the nick from the other proc using set ::nick $nick .. how would i be able to set it to the right idx cause that idx is only known from the moment they accept the dcc chat .. <br><blockquote class="uncited"><div>listen 4000 script listen:start<br><br>proc ...{}{<br>  putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] 4000\001"<br>}<br><br>proc listen:start {idx} {<br>  control $idx listen:control<br>}<br><br>proc listen:control {fidx arg} {<br>  ....[script]....<br>}</div></blockquote>i think i need an array of some kind but i need to be able to set the right nick once an dccchat is accepted .. if it dcc chats doesn't it send its nick ?<br><br>i mean isn't there some way i could get there nick from that dcc chat ? like if they connect can't i get it some how ..? if u talke it goes like<br><blockquote class="uncited"><div>&lt;nick&gt; hello<br>&lt;bot&gt; hi</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Dec 05, 2003 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-12-05T08:35:36-04:00</updated>

		<published>2003-12-05T08:35:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31097#p31097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31097#p31097"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31097#p31097"><![CDATA[
Ofloo: how is the connection put under control initiated?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Dec 05, 2003 8:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-12-05T00:32:58-04:00</updated>

		<published>2003-12-05T00:32:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31089#p31089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31089#p31089"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31089#p31089"><![CDATA[
Okay, firstly, I doubt [list yourproc $nick] is what you are after, as it would always call the proc with the bot's own nick setting, which I don't think is what you are after...<br><br>  What I think you are after is, parse the dcclist, match up the idx with the one from the control idx, grab the host, parse through userlists for your bot's channel(s), find the matching user with the matching host...<br>  <br>  Alternatively, you could have the user specify their IRC nickname from within the control proc itself as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Dec 05, 2003 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-12-05T00:03:34-04:00</updated>

		<published>2003-12-05T00:03:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31087#p31087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31087#p31087"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31087#p31087"><![CDATA[
Use an array? Check the tcl manual.<br><br>Or, make it like, listen 1234 script [list yourproc $nick] and then $nick will be the first param to your proc. But the array is a better way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Dec 05, 2003 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2003-12-04T23:21:20-04:00</updated>

		<published>2003-12-04T23:21:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31085#p31085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31085#p31085"/>
		<title type="html"><![CDATA[dccsend within control proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31085#p31085"><![CDATA[
how do i get a nick into this thing (nick of the connecting user)<br><blockquote class="uncited"><div>listen &lt;port&gt; script &lt;proc&gt; [flag] <br>Description: accepts connections which are immediately routed to a proc. The proc is called with one parameter: the idx of the new connection. Flag may currently only be 'pub', which makes the bot allow anyone to connect.</div></blockquote>i wana initiate an dcc send from withing a control proc .. any one any suggestions plz would be so great full and be a real life saver .. problem is i don't have a nick to send to i could use global but its multiuser so .. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> i could use global on the idx but i can't seem to figur out a way to put $idx &amp; $nick to gether .. to create $nick($idx)<br><br>and [dcclist] won't work either<br><blockquote class="uncited"><div>[04:28] &lt;Eggy&gt; ---- -------- ----- --------- ----------------- ----<br>[04:28] &lt;Eggy&gt; 3    C0A80064  3333 (telnet)  *                 lstn  3333<br>[04:28] &lt;Eggy&gt; 4    00000000     0 (dns)                       dns   (ready)<br>[04:28] &lt;Eggy&gt; 6    C0A80064  4000 (script)  listen:start      lstn  4000<br>[04:28] &lt;Eggy&gt; 1    C0A80064     0 HQ        llama@console     chat  flags: cptEp/0<br>[04:28] &lt;Eggy&gt; 8    50F7CDEE  6667 (server)  c.eu.nl.ofloo.net serv  (lag: 2)<br>[04:28] &lt;Eggy&gt; 9    8102D5A1  4588 Ofloo     netadmin.ofloo.net chat  flags: cpTEp/0<br>[04:28] &lt;Eggy&gt; 10   8102D5A1  4314 *         netadmin.ofloo.net scri  listen:control <span style="color:red">&lt;-- curent dcc session</span></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Dec 04, 2003 11:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
