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

	<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-08-29T13:12:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-29T13:12:34-04:00</updated>

		<published>2002-08-29T13:12:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10196#p10196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10196#p10196"/>
		<title type="html"><![CDATA[Send text fast without server?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10196#p10196"><![CDATA[
Yup this is very possible..<br><br>here is an example script to do it (untested, but just to give you the idea..)<br><br>dccstuff.tcl<div class="codebox"><p>Code: </p><pre><code># you need a port number to listen on so that we can send DCC chats# alternatively, I've also binded .getsql on the partyline to it,# where you can comment out this line, and the mset sql-theport "12345"listen $sql-theport script sqlacceptbind dcc n getsql sqlmovecontrolbind msg n getsql sqlmsgcreatecontrolproc sqlmovecontrol { hand idx args } {  control $idx "sqldcc"}proc sqlmsgcreatecontrol {nick host hand args} {  putserv "PRIVMSG $nick :\001DCC CHAT [myip] $sql-theport"  putserv "NOTICE $nick :I have sent you a dcc chat, please accept."}proc sqlaccept { idx } {  sqlmovecontrol "" $idx ""}proc sqlcontrol { idx text } {  # code to 'control' the dcc chat goes here..  if {$text == ""} {    #client closed connection.. kill it    return 1;   }  if {$text == ".exit"} {    # return them to the partyline/kill the dcc    putdcc $idx "See you later."    killdcc $idx  }  if {$text == ".query"} {    # code to query the sql db goes here  }  }</code></pre></div>May take some fiddling, I advise you don't use this if you don't know what you're doing and ask for more help. The binds are .getsql on the partyline or "getsql" in a private message (both only avaliable to owners)<br><br>You need to write the code to handle people. To say something to the other end of the person in the dcc chat do:<br><div class="codebox"><p>Code: </p><pre><code>putdcc $idx "Hellow there!"</code></pre></div>Hope that helps.<p>Statistics: Posted by Guest — Thu Aug 29, 2002 1:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tR]]></name></author>
		<updated>2002-08-29T07:45:09-04:00</updated>

		<published>2002-08-29T07:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10189#p10189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10189#p10189"/>
		<title type="html"><![CDATA[Send text fast without server?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10189#p10189"><![CDATA[
Hi,<br><br>i need to send to a user one query result from Mysql. The problem ist that the result can be very long and then the bot lags until all columns are done. Is there a possiblility to open from tcl a dcc chat or something without the user have to login and send them the results directly? Now works with File DCC, but this is not very usable. thanx in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=509">tR</a> — Thu Aug 29, 2002 7:45 am</p><hr />
]]></content>
	</entry>
	</feed>
