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

	<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>2008-01-29T15:55:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-01-29T15:55:28-04:00</updated>

		<published>2008-01-29T15:55:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80445#p80445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80445#p80445"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80445#p80445"><![CDATA[
<blockquote class="uncited"><div>... regardless of if the sender is on the channel or not, the nickname and user@hostname are still sent with the PRIVMSG.</div></blockquote> Thanks, good to know. Was thinking of server's <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <blockquote class="uncited"><div>Also _YOUR_ script was so insecure it would allow any user to add channels regardless of who said the line.<br>Since the eggdrop would be on alot of channels it would allow any user to spam the bot by adding it to dozens if not hundreds of channels.</div></blockquote> I was aware of this but as i stated, it would be difficult to make this type of script secure. As you said i think it would be better to use network services such as BotServ for this type of thing. <blockquote class="uncited"><div>Not to sound smug or arrogant but if you don't know about the IRC protocol then please don't tell me that my script is pointless.<br>My script is pretty much as secure as it can get whilst yours is an open book to any user.</div></blockquote> These comments would be better off left for private message, since i cant see them being constructive/relivant to this topic. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> I like giving my input and asking questions about scripting on differant posts as long as i dosen't disrupt it. I dont think it would appropriate to pick out "security holes" in each others code like this. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Jan 29, 2008 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-01-29T13:48:49-04:00</updated>

		<published>2008-01-29T13:48:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80439#p80439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80439#p80439"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80439#p80439"><![CDATA[
<blockquote class="uncited"><div>It would be difficult to make this type of script <em class="text-italics">secure</em>. I'm sure the person that owns the bot/network would of increased security my means such as locking the channel ...etc as this tends to be strongly adviced when having services log to a channel. On a scripting note, Is it even possible to check the hostmask of Global in this situation, since it wouldn't be on the channel (unless you use a module to do this*). I assumed this type of thing would be the same as a server sending msg's to a channel. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Actually, regardless of if the sender is on the channel or not, the nickname and user@hostname are still sent with the PRIVMSG.<br><br>Also _YOUR_ script was so insecure it would allow any user to add channels regardless of who said the line.<br>Since the eggdrop would be on alot of channels it would allow any user to spam the bot by adding it to dozens if not hundreds of channels.<br><br>Not to sound smug or arrogant but if you don't know about the IRC protocol then please don't tell me that my script is pointless.<br>My script is pretty much as secure as it can get whilst yours is an open book to any user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Jan 29, 2008 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-01-28T19:50:26-04:00</updated>

		<published>2008-01-28T19:50:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80421#p80421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80421#p80421"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80421#p80421"><![CDATA[
It would be difficult to make this type of script <em class="text-italics">secure</em>. I'm sure the person that owns the bot/network would of increased security my means such as locking the channel ...etc as this tends to be strongly adviced when having services log to a channel. On a scripting note, Is it even possible to check the hostmask of Global in this situation, since it wouldn't be on the channel (unless you use a module to do this*). I assumed this type of thing would be the same as a server sending msg's to a channel. <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=8130">TCL_no_TK</a> — Mon Jan 28, 2008 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-01-28T13:25:04-04:00</updated>

		<published>2008-01-28T13:25:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80416#p80416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80416#p80416"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80416#p80416"><![CDATA[
That script will cause problems if you use it like that.<br>This version should be much more secure.<br><br>Also, you should note that the bot will use alot of resources if it has to join alot of channels like this.<br>You're better off using a network service for these kind of things.<br><br>[untested]<br><div class="codebox"><p>Code: </p><pre><code># Make sure you set the full hostname here. (this is to make sure it's not spoofed)set chanserv(source) "Global!user@hostname"# This is the message that's sent by the service (don't change it)set chanserv(pattern) "ChanServ: Channel '*' registered by *"# The channel in which the service sends the message.set chanserv(channel) "#servicechannel"bind pub -|- "ChanServ:" pub:global:chanregproc pub:global:chanreg {nick host handle channel text} {    global chanserv    if {[string equal -nocase $channel $chanserv(channel)] &amp;&amp; [string equal -nocase $nick!$host $chanserv(source)] &amp;&amp; [string match -nocase $chanserv(pattern) $text]} {        set text [string map [list ' ""] $text]        set channel [lindex [split $text] 2]        if {![validchan $channel]} {            channel add $channel        }    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jan 28, 2008 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-01-27T14:46:29-04:00</updated>

		<published>2008-01-27T14:46:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80387#p80387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80387#p80387"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80387#p80387"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub:global:chanreg {nick host handle channel text} {global botnick set type [lindex $text 0]  if {$type == "Channel"} {   set newchan [lindex [split [lindex $text 1] "'"] 1]    if {![validchan $newchan]} {     channel add $newchan      puthelp "PRIVMSG ChanServ :SOP $newchan ADD $botnick"       return 1    }  }}bind pub -|- "ChanServ:" pub:global:chanreg</code></pre></div> let me know if there are any problems, errors or things ya want changing. <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=8130">TCL_no_TK</a> — Sun Jan 27, 2008 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[JC^]]></name></author>
		<updated>2007-05-29T12:26:27-04:00</updated>

		<published>2007-05-29T12:26:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73139#p73139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73139#p73139"/>
		<title type="html"><![CDATA[Auto-Add on Channel Registration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73139#p73139"><![CDATA[
Hi. I'd like to make a script where the eggdrop can join and add itself to a channel as soon as its created.<br><br>I've got a channel where every command is outputted and so when a channel is created and registered, the channel says:<br><div class="codebox"><p>Code: </p><pre><code>&lt;Global&gt; ChanServ: Channel '#Cottage-by-the-Sea' registered by Dorian</code></pre></div>I'd like the bot to be able to listen for that or a similar string, then automatically perform a +chan automatically so it joins the channel, then saves it all the next time it does the chansave.<br><br>Can someone assist me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9022">JC^</a> — Tue May 29, 2007 12:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
