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

	<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-10-04T15:13:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-10-04T15:10:01-04:00</updated>

		<published>2008-10-04T15:10:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85406#p85406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85406#p85406"/>
		<title type="html"><![CDATA[Global Vars [Help] {Solved}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85406#p85406"><![CDATA[
Looking a bit further, it seems the error is not in CONNECTLOCKDOWN, but in a proc named CONNECT.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Oct 04, 2008 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-10-04T15:06:31-04:00</updated>

		<published>2008-10-04T15:06:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85404#p85404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85404#p85404"/>
		<title type="html"><![CDATA[Global Vars [Help] {Solved}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85404#p85404"><![CDATA[
I'm getting this error AFTER the fact that LockDown or UnLock has been called on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Oct 04, 2008 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-10-04T14:57:48-04:00</updated>

		<published>2008-10-04T14:57:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85402#p85402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85402#p85402"/>
		<title type="html"><![CDATA[Global Vars [Help] {Solved}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85402#p85402"><![CDATA[
This is because the variable isn't declared yet. The global command only links the variable name in the local namespace to the one in globalspace, or simply, "myvar" is translated to "::myvar". You still have to create ::myvar.<br><br>In your case, it is most likely due to neither LockDown or UnLock being called yet. Easy fix would be to instantiate the variable as the script loads:<div class="codebox"><p>Code: </p><pre><code>...bind pubm - "*CONNECT*" CONNECTLOCKDOWNset LockDown off...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Oct 04, 2008 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Branden]]></name></author>
		<updated>2008-10-04T15:13:56-04:00</updated>

		<published>2008-10-04T14:53:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85400#p85400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85400#p85400"/>
		<title type="html"><![CDATA[Global Vars [Help] {Solved}]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85400#p85400"><![CDATA[
Hi there,<br><br><br>I'm having an issue with vars, one proc is making the var, and I want another proc to be able to read that var.<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind pub m|m "!LockDown" LockDownbind pub m|m "!UnLock" UnLockbind pubm - "*CONNECT*" CONNECTLOCKDOWNproc LockDown { nick host hand chan text } {global botnick LockDownset LockDown onputquick "MODE $botnick +s +cFs"foreach chan [channels] {putquick "MODE $chan +mNipCRS"putquick "MODE $chan +k LockDownModeInitiated"putquick "PRIVMSG $chan Network is going into lockdown mode, from this point until LockDown is removed, no one will be able to connect to this network."}}proc UnLock { nick host hand chan text } {global botnick LockDownset LockDown offputquick "MODE $botnick -s -cFs"foreach chan [channels] {putquick "MODE $chan -mNipCRS"putquick "MODE $chan -k LockDownModeInitiated"putquick "PRIVMSG $chan Network is off of LockDown, everything is back to normal."}}proc CONNECTLOCKDOWN { nick host hand chan text } { global LockDownset User [lindex [split $text] 3] if {$chan == "#4ct1v1ty" &amp;&amp; $LockDown == "on"} { putserv "GLINE [stripcodes bcruag $User] 5m :Network is in lockdown mode, this ban will expire in 5 minuets, please reconnect at that time"} else { return } }</code></pre></div><br>I get this error:<br><br><blockquote class="uncited"><div>[10/04/08][14:48:04] &lt;NightCrawler&gt; [11:41] Tcl error [CONNECT]: can't read "LockDown": no such variable</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9196">Branden</a> — Sat Oct 04, 2008 2:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
