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

	<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>2007-02-09T15:11:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-02-09T15:11:40-04:00</updated>

		<published>2007-02-09T15:11:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70331#p70331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70331#p70331"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70331#p70331"><![CDATA[
Might be worth mentioning, that you currently mix tcl's I/O mechanisms with eggdrop's own socket-implementations. They are not compatible; ie. you cannot use 'puts' with sockets opened with 'connect' or 'listen'. In the same fashion, you cannot use 'putidx' or 'control' with sockets created with the 'socket' command.<br><br>Each method has it own advantages and disadvantages; so I'd suggest you read up on both and decide on which to use before you proceed with coding this script.<br><br>Also, on a sidenote, I can't stress enough how bad it is to use list-commands (such as 'lindex') on strings. Please use 'split' to convert strings into lists when neccesary.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Feb 09, 2007 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-09T13:27:22-04:00</updated>

		<published>2007-02-09T13:27:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70326#p70326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70326#p70326"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70326#p70326"><![CDATA[
<blockquote class="uncited"><div>hmm thats not what im looking for im wanting it on a socket bot</div></blockquote>Then why are you using 'connect'? demond's script does what you claim to be trying to do.<blockquote class="uncited"><div># this will fork a clone to scan for spam on bot's own channels</div></blockquote> ...using 'connect' to make the tcp connection<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 09, 2007 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T13:23:47-04:00</updated>

		<published>2007-02-09T13:23:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70325#p70325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70325#p70325"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70325#p70325"><![CDATA[
hmm thats not what im looking for im wanting it on a socket bot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-02-09T10:04:47-04:00</updated>

		<published>2007-02-09T10:04:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70317#p70317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70317#p70317"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70317#p70317"><![CDATA[
<blockquote class="uncited"><div>Btw im wanting this tcl so it check for invite spam every 10 mins or so..</div></blockquote><a href="http://www.demond.net/spambuster.tcl" class="postlink">http://www.demond.net/spambuster.tcl</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Feb 09, 2007 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T06:54:58-04:00</updated>

		<published>2007-02-09T06:54:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70312#p70312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70312#p70312"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70312#p70312"><![CDATA[
Btw im wanting this tcl so it check for invite spam every 10 mins or so..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T06:35:00-04:00</updated>

		<published>2007-02-09T06:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70311#p70311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70311#p70311"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70311#p70311"><![CDATA[
i get this &lt;eggdrop&gt; Currently: wrong # args: should be "error message ?errorInfo? ?errorCode?"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-02-09T06:24:29-04:00</updated>

		<published>2007-02-09T06:24:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70310#p70310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70310#p70310"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70310#p70310"><![CDATA[
Post the results of:<div class="codebox"><p>Code: </p><pre><code>.set errorInfo</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Feb 09, 2007 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T06:22:24-04:00</updated>

		<published>2007-02-09T06:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70308#p70308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70308#p70308"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70308#p70308"><![CDATA[
Ok i fix that part but now it, now won't connect to irc..<br><br><div class="codebox"><p>Code: </p><pre><code>bind pub - !addbot socket:addproc socket:add {nick uhost hand chan arg} {  global realname username socket:chan socket:serv socket:conn  set nick [lindex $arg 0]  set chan [lindex $arg 1]  set serv [lindex $arg 2]  set port [lindex $arg 3]  if {![validchan $chan]} {    putserv "NOTICE $nick :Invalid Channel"    putserv "NOTICE $nick :usage: !addbot &lt;nick&gt; &lt;channel&gt; &lt;server&gt; \[port\]"    } else {    if {$serv == ""} {      putserv "NOTICE $nick :Specify a Server"      putserv "NOTICE $nick :usage: !addbot &lt;nick&gt; &lt;channel&gt; &lt;server&gt; \[port\]"    }  }  if {$port == ""} {    set socket:conn [connect $serv 6667]    } else {    if {$port != ""} {set socket:conn [connect $serv $port]}  }  set socket:chan $chan  set socket:serv $serv  puts "USER $username 0 0 :$realname"  puts "NICK :$nick"}return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 6:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-02-09T06:19:03-04:00</updated>

		<published>2007-02-09T06:19:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70307#p70307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70307#p70307"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70307#p70307"><![CDATA[
<blockquote class="uncited"><div>Im not really good a tcl scripting..</div></blockquote>For every open brace '{' there has to be a matching closing one '}'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Feb 09, 2007 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T05:56:55-04:00</updated>

		<published>2007-02-09T05:56:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70306#p70306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70306#p70306"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70306#p70306"><![CDATA[
Im not really good a tcl scripting..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-02-09T05:18:51-04:00</updated>

		<published>2007-02-09T05:18:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70304#p70304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70304#p70304"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70304#p70304"><![CDATA[
If you indented your code properly, you'd be able to find the missing close bracket.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Feb 09, 2007 5:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-02-09T04:38:40-04:00</updated>

		<published>2007-02-09T04:38:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=70302#p70302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=70302#p70302"/>
		<title type="html"><![CDATA[socket bot help..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=70302#p70302"><![CDATA[
Can some one help me with this socket bot..<br><br>i get:<br><div class="codebox"><p>Code: </p><pre><code>&lt;eggdrop&gt; [02:46] Tcl error [socket:add]: missing close-bracket</code></pre></div><div class="codebox"><p>Code: </p><pre><code>bind pub - !addbot socket:addproc socket:add {nick uhost hand chan} {  global nick realname username socket:chan socket:serv socket:nick socket:conn  set socketnick $nick[rand 1000]  set chan "$text0"  set serv "text1"  set port "text2"  if {![validchan $chan]} {    putserv "NOTICE $nick :Invalid Channel"    putserv "NOTICE $nick :usage: !addbot &lt;channel&gt; &lt;server&gt; \[port\]"    } else {    if {$serv == ""} {      putserv "NOTICE $nick :Specify a Server"      putserv "NOTICE $nick :usage: !addbot &lt;channel&gt; &lt;server&gt; \[port\]"      } else {      if {[info exists $socket:conn]} {        if {[valididx $socket:conn} {          putserv "NOTICE $nick :QUIT :Switching Servers"          killdcc $socket:conn        }      }      if {$port == ""} {        set socket:conn [connect $serv 6667]        } else {        if {$port != ""} {set socket:conn [connect $serv $port]}      }      set socket:chan $chan      set socket:serv $serv      putlc "USER $username 0 0 :$realname"      putlc "NICK :$socket:nick"    }    return 1  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Fri Feb 09, 2007 4:38 am</p><hr />
]]></content>
	</entry>
	</feed>
