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

	<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-01-25T00:08:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-25T00:08:31-04:00</updated>

		<published>2006-01-25T00:08:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59696#p59696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59696#p59696"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59696#p59696"><![CDATA[
that was a necessary clarification<br><br>I personally wouldn't recommend a script which won't work for everybody; but then again, there's only a handful of correct eggdrop scripts, unfortunately<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Jan 25, 2006 12:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-01-24T12:42:52-04:00</updated>

		<published>2006-01-24T12:42:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59660#p59660</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59660#p59660"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59660#p59660"><![CDATA[
Oh well, it works fine for me. I don't like to complicate stuff. And you aren't forced to reload all the scripts since that already happens when you either rehash or restart the bot. Anyway, is not 100% perfect BUT it's doing exactly what I needed. <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=187">caesar</a> — Tue Jan 24, 2006 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-24T05:35:54-04:00</updated>

		<published>2006-01-24T05:35:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59655#p59655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59655#p59655"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59655#p59655"><![CDATA[
as simple as it might be, it's actually more crude than I thought<br><br>I am forced to reload all other scripts in order to unload one? what if I don't want to do that? I might have some scripts in intermediate states, which will screw up their current states on forced reload, what about that? what if I don't want my config modified? what if the script I want to unload is not sourced directly in the config, but indirectly by some other script?<br><br>it ain't that easy as it sounds<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 24, 2006 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-01-24T04:46:46-04:00</updated>

		<published>2006-01-24T04:46:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59654#p59654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59654#p59654"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59654#p59654"><![CDATA[
demond : Actualy egghead's 'freshmint' dose the cleaning. And no, you don't need to unbind just the binds of that tcl script in question since upon rehash your conf file is reloaded also all your tcl scripts are reloadsed, meaning that all the binds are (re)created so, the binds from the 'unloaded' script won't be binded again because that script isn't loaded because isn't there. Simple. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Wingman's 'Unloadtcl' just opens your conf file and either appends or removes a certain line with the script you wish either to load or remove.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jan 24, 2006 4:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-24T00:20:53-04:00</updated>

		<published>2006-01-24T00:20:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59651#p59651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59651#p59651"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59651#p59651"><![CDATA[
you can't really unload an eggdrop Tcl script<br><br>at least you can't know which binds belong to that script; parsing the source (as that wingman guy's script probably does) is crude and inacurate way of obtaining such info<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 24, 2006 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-01-23T17:28:53-04:00</updated>

		<published>2006-01-23T17:28:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59648#p59648</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59648#p59648"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59648#p59648"><![CDATA[
Sir_Fz : There is no need to use '[lindex [split $arg] 0]' three times, why don't you just '[set foo [lindex [split $arg] 0]]' then use $foo instead of two '[lindex [split $arg] 0]'?<br><br>As for loading/unloading a script in the TCL Archive is a script called 'Unloadtcl' by Wingman that 'Allows you to load and unload Tcl scripts using DCC commands.' give it a try. I know is old and a bit outdated.. egghead's 'freshmint' (it's a script, check it's webpage, don't know if he added in the TCL Archive) is realy nice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 23, 2006 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-23T10:06:42-04:00</updated>

		<published>2006-01-23T10:06:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59634#p59634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59634#p59634"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59634#p59634"><![CDATA[
You can load a script, but you can't unload it. For example:<div class="codebox"><p>Code: </p><pre><code>bind pub n !bload bloadproc bload {nick uhost hand chan arg} { if {![catch {source [lindex [split $arg] 0]} e]} {  puthelp "privmsg $chan :Loaded [lindex [split $arg] 0]." } {  puthelp "privmsg $chan :An error occured while trying to load [lindex [split $arg] 0]: $e" }}</code></pre></div>As for unloading, I don't think you can do that BUT you can still unbind all binds assiciated with the loading script but that will need some extra coding.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jan 23, 2006 10:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacDaddy]]></name></author>
		<updated>2006-01-22T22:32:11-04:00</updated>

		<published>2006-01-22T22:32:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59619#p59619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59619#p59619"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59619#p59619"><![CDATA[
ok thanks for the reply  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>edit: ok it there a way to have the script loaded but none of the triggers in the script to work untill the channel trigger is used ie !bload and deactivate on !bunload ?<br><br>like instead of loading the script with a /load command have the script loaded in the bot but it will be idle untill the trigger is given in the channel by an op halfop or voice.<br>say the normal bot is in the channel and someone uses !trigger1 the backup bot wont reply but if the !bload command is given on a netsplit the !trigger1 will work and the bot will reply to the channel triggers.<br><br>hope you understand what i mean  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7265">MacDaddy</a> — Sun Jan 22, 2006 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-01-22T21:08:33-04:00</updated>

		<published>2006-01-22T21:08:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59617#p59617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59617#p59617"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59617#p59617"><![CDATA[
Probably not possible due to the simple fact that the eggdrop's configuration file needs editing followed by a rehash; it's not a simple matter of /load or /unload.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Jan 22, 2006 9:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MacDaddy]]></name></author>
		<updated>2006-01-22T05:57:36-04:00</updated>

		<published>2006-01-22T05:57:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59594#p59594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59594#p59594"/>
		<title type="html"><![CDATA[load backup]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59594#p59594"><![CDATA[
hey all is there a way to make a trigger that will load 1 or more backup scripts if the main channel bot gose in a netsplit i know how to do it in mIRC script but not tcl eg:<br><div class="codebox"><p>Code: </p><pre><code>ON *:TEXT:!bload:#channelhere: {  if (($nick isop #) || ($nick ishop #) || ($nick isvoice #)) {    /load -rs Scripts\Scripts.mrc | /msg $chan $nick Backup scripts loaded :)  }}ON *:TEXT:!bunload:#channelshere: {  if (($nick isop #) || ($nick ishop #) || ($nick isvoice #)) {    /unload -rs Scripts\Scripts.mrc | /msg $chan $nick Backup scripts Unloaded :)  }}</code></pre></div>or load more than one sctipt and unload then as abouve would be just a simple break and /load -rs script2.mrc then message <br>anyone know how this can be done in tcl so and eggdrop bot would load the backup script<br>thanks for anyhelp<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7265">MacDaddy</a> — Sun Jan 22, 2006 5:57 am</p><hr />
]]></content>
	</entry>
	</feed>
