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

	<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>2010-08-01T15:03:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-08-01T15:03:46-04:00</updated>

		<published>2010-08-01T15:03:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93705#p93705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93705#p93705"/>
		<title type="html"><![CDATA[Port From Site to Eggdrop?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93705#p93705"><![CDATA[
A comment on the posted code:<br><br>Avoid using the name "<em class="text-italics">args</em>" for proc arguments, as it is handled in a different manner. Basically, it will accept 0 or more parameters, each provided as a list entity - whereas normal argument names only takes one.<br><br>In the case of <strong class="text-strong">control</strong>, the command/proc is always called with two parameters - idx and text - so there is no need for <em class="text-italics">args</em> here. Further, using commands such as <strong class="text-strong">string map</strong> on a list is a bad idea, as this might very well break the (delicate) list structure.<br><br>I'd recommend something like this:<div class="codebox"><p>Code: </p><pre><code>proc botlisten2 {idx text} {  set params [split $text]  set password1 [lindex $params 0]  set message [join [lrange $params 1 end]]...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Aug 01, 2010 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MIODude]]></name></author>
		<updated>2010-07-31T21:22:24-04:00</updated>

		<published>2010-07-31T21:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93700#p93700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93700#p93700"/>
		<title type="html"><![CDATA[Port From Site to Eggdrop?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93700#p93700"><![CDATA[
You should create a separate script for that function, and you want to specify the listen port in that script<br><div class="codebox"><p>Code: </p><pre><code>listen xxxx script botlistenset password "password"proc botlisten {idx} {    control $idx botlisten2}proc botlisten2 {idx args} {    set args [string map { "\\" "" } $args]    set args [join $args]    set password1 [lindex [split $args] 0]    set message [join [lrange [split $args] 1 end]]  if {[string match $::password $password1]} {        putnow "PRIVMSG #channel :$message" } else {    putlog "Unauthorized person tried to connect to the bot"    }}</code></pre></div>like that. Where XXXX is the port. Make it different than any port you are loading in your eggdrop config.  The website would telnet the data to the port defined in this script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8276">MIODude</a> — Sat Jul 31, 2010 9:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[W33dman]]></name></author>
		<updated>2010-07-19T11:10:54-04:00</updated>

		<published>2010-07-19T11:10:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93582#p93582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93582#p93582"/>
		<title type="html"><![CDATA[Port From Site to Eggdrop?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93582#p93582"><![CDATA[
Hello all,<br><br>First let me say thank you for Eggdrop! Just got it up and running yesterday and having lots of fun with it...the options are endless.<br><br>Now my website has a built in option to connect to the eggdrop and use it to announce things on the site in IRC. I am just not sure what port to specify and tell it connect to eggdrop with as their are a few different options and so far the ports I have tried did not seem to work.<br><br>Thanks<br>W33dman<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11288">W33dman</a> — Mon Jul 19, 2010 11:10 am</p><hr />
]]></content>
	</entry>
	</feed>
