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

	<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>2009-07-05T16:26:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-07-05T16:26:57-04:00</updated>

		<published>2009-07-05T16:26:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89447#p89447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89447#p89447"/>
		<title type="html"><![CDATA[Re: update global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89447#p89447"><![CDATA[
<blockquote class="uncited"><div>Currently I got this but this doesn't work, any suggestions?</div></blockquote>Ironically, you've forgotten to global variables in your global message script. Add this line:<div class="codebox"><p>Code: </p><pre><code>global person</code></pre></div>As the very first line below both your procedures. This will allow the local-space variable "person" to carry across into global space. Otherwise the contents of this local-space variable will be destroyed at the end of the procedure. This allows two procedures to share the same variable/contents without having to be passed during invocation.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Jul 05, 2009 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2009-07-05T14:50:53-04:00</updated>

		<published>2009-07-05T14:50:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=89446#p89446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=89446#p89446"/>
		<title type="html"><![CDATA[update global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=89446#p89446"><![CDATA[
Currently I have following global script<br><br><br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!global" PubGlobalsetudef flag staffproc PubGlobal {nick host hand chan text} { if {[channel get $chan staff]} {  if {$text == ""} {   puthelp "PRIVMSG $chan :\002FOUT:\002 Gelieve een global op te geven."  } else {   puthelp "PRIVMSG #twor :\002GLOBAL:\002 \[ \00307$nick\00301 \] $text"   puthelp "PRIVMSG #tworSTAFF :\002GLOBAL:\002 \[ \00307$nick\00301 \] $text"   puthelp "PRIVMSG #tworPA :\002GLOBAL:\002 \[ \00307$nick\00301 \] $text"   putloglev p "#twor" "&lt;TWOR_LOG&gt; \002GLOBAL:\002 \[ \00307$nick\00301 \] $text"   return 1  } }}</code></pre></div>But i would like to change it so $nick can be specified.<br><br>Something like this:<br><br>!setperson My Name<br>!pglobal Tekst <br><br><strong class="text-strong">GLOBAL:</strong> [ My Name ] Tekst<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- "!setperson" PubPersonsetudef flag staffproc PubPerson {nick host hand chan text} { if {[channel get $chan staff]} {  if {$text == ""} {   puthelp "PRIVMSG $chan :\002FOUT:\002 Gelieve een naam op te geven."  } else {   puthelp "PRIVMSG $chan :\002NEW PERSON:\002 $text"   set person $text   return 1  } }}bind pub -|- "!pglobal" PubpGlobalsetudef flag staffproc PubpGlobal {nick host hand chan text} { if {[channel get $chan staff]} {  if {$text == ""} {   puthelp "PRIVMSG $chan :\002FOUT:\002 Gelieve een p-global op te geven."  } else {   puthelp "PRIVMSG #tworSTAFF :\002GLOBAL:\002 \[ \00307$person\00301 \] $text"   putloglev p "#twor" "&lt;TWOR_LOG&gt; \002GLOBAL:\002 \[ \00307$person\00301 \] $text"   return 1  } }}</code></pre></div>Currently I got this but this doesn't work, any suggestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Sun Jul 05, 2009 2:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
