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

	<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-10-17T09:13:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2010-10-17T09:13:38-04:00</updated>

		<published>2010-10-17T09:13:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=94772#p94772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=94772#p94772"/>
		<title type="html"><![CDATA[Invitation/SAJOIN Script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=94772#p94772"><![CDATA[
sorry that Im digging out this rather old threat, but I definately have to say thank you tomekk for both scripts, tested it, modified it, works like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Sun Oct 17, 2010 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2010-02-13T15:49:47-04:00</updated>

		<published>2010-02-13T15:49:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92090#p92090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92090#p92090"/>
		<title type="html"><![CDATA[Invitation/SAJOIN Script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92090#p92090"><![CDATA[
some time ago i wrote something similar<br><br>eggdrop part (you can add some regexps in this proc, whatever):<div class="codebox"><p>Code: </p><pre><code># Author: tomekk# e-mail:  tomekk/@/oswiecim/./eu/./org# home page: http://tomekk.oswiecim.eu.org/## Version 0.2## This file is Copyrighted under the GNU Public License.# http://www.gnu.org/copyleft/gpl.htmlset secret_key "blahblah"set listen_port 1234set listen_host 127.0.0.1###########################################################################bind evnt - prerehash prerehash_procset s_socket [socket -server socket_proc -myaddr $listen_host $listen_port]proc prerehash_proc { type } {global s_socketclose $s_socket}proc socket_proc { sock host port } {        fconfigure $sock -buffering linefileevent $sock readable [list soc_action $sock $host $port]}proc hex2str { hex_value } {binary format H* $hex_value}proc soc_action { chan host port } {global secret_keyif {![eof $chan]} {set soc_data [gets $chan]if {$soc_data != ""} {set separate_data [split [hex2str $soc_data] "\n"]set sock_secret_key [lindex $separate_data 0]set sock_nick [lindex $separate_data 1]set sock_channels [lindex $separate_data 2]if {$secret_key == $sock_secret_key} {foreach inv_channel [split $sock_channels] {putserv "INVITE $sock_nick $inv_channel"}} {close $chan}}} {close $chan}}putlog "www-invite.tcl ver 0.2 by tomekk loaded"</code></pre></div>simple proc in PHP (its very simple you should write some flood protect etc in your proper PHP script)<div class="codebox"><p>Code: </p><pre><code>&lt;?phpfunction send_to_eggy( $nick, $channels  ){// secret key, eggdrop host/port$secret_key = 'blahblah';$eggy_ip = '127.0.0.1';$eggy_port = 1234;//////////////////////////////////////////////////////////////////////////////$tcp_str = $secret_key . "\n" . $nick . "\n" . $channels;$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);socket_connect($sock, $eggy_ip, $eggy_port) or die ("can't connect to eggy!");socket_write($sock, bin2hex($tcp_str));socket_close($sock);}send_to_eggy('tomekk', '#chan1 #chan2 #chan3');?&gt;</code></pre></div>when you start eggdrop with this TCL script, you should see that the eggdrop is listening on some port<blockquote class="uncited"><div>[tomekk@zlom]:/# netstat -tapn | grep 1234<br>tcp        0      0 127.0.0.1:1234          0.0.0.0:*               LISTEN     25057/eggdrop</div></blockquote>all you have to do is to write your PHP page with some HTML forms for users,<br><br>one more thing, those scripts are based on TCP sockets,<br>make sure that your firewall is not blocking ports etc<br><br>try it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sat Feb 13, 2010 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honomsha]]></name></author>
		<updated>2010-02-09T21:35:24-04:00</updated>

		<published>2010-02-09T21:35:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92031#p92031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92031#p92031"/>
		<title type="html"><![CDATA[Invitation/SAJOIN Script :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92031#p92031"><![CDATA[
Hi everybody<br><br>What im looking for is probaly never coded (or published before).<br><br>I have my eggdrop running on my own irc network, linked to my website (php/mysql) so i want to make the irc channels invite only.<br><br>The thing i want is so the people registrered to my website go to /irc.php (etc.) and choose the channels they wanna get invited. Then when they have chosen, they click a link or button and my eggdrop bot invites them to the channel(s) they have chosen.<br><br>The channels they can chose has to be specified in mysql so i can code it in my site.<br><br>Is this even possible? <br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11096">honomsha</a> — Tue Feb 09, 2010 9:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
