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

	<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>2006-04-15T12:22:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2006-04-15T12:22:17-04:00</updated>

		<published>2006-04-15T12:22:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61962#p61962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61962#p61962"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61962#p61962"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc cricinfo {minute hour day month year} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Apr 15, 2006 12:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CuteBangla]]></name></author>
		<updated>2006-04-15T02:47:38-04:00</updated>

		<published>2006-04-15T02:47:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61946#p61946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61946#p61946"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61946#p61946"><![CDATA[
so wht is the final code&gt;?<br><blockquote class="uncited"><div><blockquote class="uncited"><div>proc cricinfo {} {</div></blockquote>Why did you remove min, h, d, m, and y from the var list? its not optional. A bind to time will always be called with 5 arguments as you do not explicitly change it (like using the special argument "args" or adding addionals arguments to the bind line).</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7425">CuteBangla</a> — Sat Apr 15, 2006 2:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-01-08T08:59:27-04:00</updated>

		<published>2006-01-08T08:59:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59238#p59238</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59238#p59238"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59238#p59238"><![CDATA[
<blockquote class="uncited"><div>proc cricinfo {} {</div></blockquote>Why did you remove min, h, d, m, and y from the var list? its not optional. A bind to time will always be called with 5 arguments as you do not explicitly change it (like using the special argument "args" or adding addionals arguments to the bind line).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Jan 08, 2006 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2006-01-08T07:31:25-04:00</updated>

		<published>2006-01-08T07:31:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59235#p59235</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59235#p59235"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59235#p59235"><![CDATA[
hi demond, lil help pls<br><br><br><blockquote class="uncited"><div>[08/01 17:00:03] &lt;Doub&gt; [03:10] Tcl error [cricinfo]: wrong # args: should be "cricinfo"<br>[08/01 17:01:34] &lt;Doub&gt; [03:30] #nANDu# set errorInfo<br>[08/01 17:01:34] &lt;Doub&gt; Currently: wrong # args: should be "cricinfo"<br>[08/01 17:01:34] &lt;Doub&gt; Currently:     while executing<br>[08/01 17:01:34] &lt;Doub&gt; Currently: "cricinfo $_time1 $_time2 $_time3 $_time4 $_time5"</div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind time - "?0 *"   cricinfoproc cricinfo {} {global chanlinkidx chanlinknick nick username realname if {$chanlinkidx == ""} {set serv "CricInfo.LO.UK.StarLink.Org"set chanlinkidx [connect $serv 6667]control $chanlinkidx linkchanputlc "USER $username 0 0 :$realname"set chanlinknick $nick[rand 1000]putlc "NICK $chanlinknick"}}</code></pre></div><strong class="text-strong">.tcl cricinfo</strong> frm the dcc works fine<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Sun Jan 08, 2006 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-06T00:16:26-04:00</updated>

		<published>2006-01-06T00:16:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59122#p59122</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59122#p59122"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59122#p59122"><![CDATA[
async comm means you must output to server's socket <strong class="text-strong">only</strong> in your control proc, responding to server's input <br><br>telnet to your server on its IRC port and see what exactly it sends you; my guess is it needs you to reply on PING cookie<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jan 06, 2006 12:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2006-01-05T09:02:53-04:00</updated>

		<published>2006-01-05T09:02:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59062#p59062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59062#p59062"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59062#p59062"><![CDATA[
Hi Demond,<br><br>Thanks for the suggestion, I tried the same with [fconfigure] &amp; [fileevent] .. i still get the same error. Nevermind i know i din understand/use them properly :/ <br><br>Your spambuster was a great help, i succeeded the same with [control] &amp; [connect]. But, i need a lil help checking a proc every minute or 5, to make sure that the socket is connected. Below is what i tried (from ur spambuster's help) :-<div class="codebox"><p>Code: </p><pre><code>bind time - "?0 % % % %"cricinfoproc cricinfo {min hr mn d yr} {global chanlinkidx username realname nickif {![info exists chanlinkidx]} {if {![valididx $chanlinkidx]} {control [set chanlinkidx [connect CricInfo.LO.UK.StarLink.Org 6667]] cric:cntrlputdcc $chanlinkidx USER $username 0 0 :$realnameputdcc $chanlinkidx NICK $nick[rand 1000]}}}</code></pre></div>Problem: <br>1) Even if i kill the above $chanlinkidx, it never restarts it.<br>2) By trial &amp; error i get the <em class="text-italics"><strong class="text-strong">proc cricinfo</strong></em> restart. But, i get an error <em class="text-italics"><strong class="text-strong">no such variable chanlinkidx</strong></em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Thu Jan 05, 2006 9:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-12-30T23:59:40-04:00</updated>

		<published>2005-12-30T23:59:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58833#p58833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58833#p58833"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58833#p58833"><![CDATA[
that must be the dumbest error message ever issued by an IRC server<br><br>the IRC server &lt;-&gt; client communication is asynchronous, i.e. you need to handle it with non-blocking, event-driven socket (either use Tcl's mechanism for that - [fconfigure] and [fileevent], or use eggdrop's built-in mechanism via [connect] and [control])<br><br>search the forum on the subject, there are plenty of topics elaborating on it; or/and see my script spambuster which, among many other things, does what you need to do - connects a client to IRC server<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Dec 30, 2005 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-12-30T17:40:16-04:00</updated>

		<published>2005-12-30T17:40:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58817#p58817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58817#p58817"/>
		<title type="html"><![CDATA[socket, client compatiblity problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58817#p58817"><![CDATA[
CricInfo.LO.UK.StarLink.Org is a CricInfo's IRC server. Idea is to get the commentry frm #cricinfo channel and relay it to bots original network/channel.<div class="codebox"><p>Code: </p><pre><code>proc cricket {} {set nick "nANDu[rand 99]" set sock [socket cricinfo.lo.uk.starlink.org 6667]   puts $sock "NICK $nick" puts $sock "USER nANDu . . Kishyy"flush $sockwhile {[lindex [split [gets $sock] :] 1] == "End of /MOTD command." } { puts $sock "JOIN #cricinfo" flush $sock}   gets $sock lineset reply [lindex [split $line :] 1]puts $sock "PONG :$reply"   if {[lindex [split $line] 1] == "PING"} {puts $sock "PONG :$reply"}set lines "$line\n"   putlog "$lines"}</code></pre></div><blockquote class="uncited"><div>:CricInfo.LO.UK.StarLink.Org 513 nANDu37 :Your client may not be compatible with this server.<br>-<br>Not able to proceed after that...</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Fri Dec 30, 2005 5:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
