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

	<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-11-27T09:36:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-11-27T09:36:57-04:00</updated>

		<published>2008-11-27T09:36:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85978#p85978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85978#p85978"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85978#p85978"><![CDATA[
Thnxs for helping boy's <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> Sorry for the late reply but i had exams <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> Love you all  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Thu Nov 27, 2008 9:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-11-25T03:58:32-04:00</updated>

		<published>2008-11-25T03:58:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85957#p85957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85957#p85957"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85957#p85957"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> heheh<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Nov 25, 2008 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-11-24T10:24:14-04:00</updated>

		<published>2008-11-24T10:24:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85955#p85955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85955#p85955"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85955#p85955"><![CDATA[
Since everyone else is making a half-hearted attempt at posting slightly modified code, I might just as well post a proper piece of code...<br>Even so, I still recommend trying to fix the problems yourself based on the hints given, rather than just taking one of the suggested solutions and be done with it.<br><br>Oh yeah, at that first glance, I did miss a variable name mixup, which is also fixed...<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\00307 \] $text"   puthelp "PRIVMSG #tworSTAFF :\002GLOBAL:\002 \[ \00307$nick\00307 \] $text"   puthelp "PRIVMSG #tworPA :\002GLOBAL:\002 \[ \00307$nick\00307 \] $text"   return 1  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 24, 2008 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-11-24T10:15:04-04:00</updated>

		<published>2008-11-24T10:15:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85953#p85953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85953#p85953"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85953#p85953"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc global { nick uhost hand channel text } {   if {(![channel get $channel staff])} {    return 0   }   if {$text == ""} {      putserv "privmsg $chan :\002FOUT:\002 Gelieve een global op te geven."      return 0   }   if {$text != ""} {        putserv "PRIVMSG #twor :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"        putserv "PRIVMSG #tworSTAFF :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"        putserv "PRIVMSG #tworPA :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"        return 1   }}</code></pre></div>  <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 Nov 24, 2008 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Djoezy]]></name></author>
		<updated>2008-11-24T04:04:29-04:00</updated>

		<published>2008-11-24T04:04:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85950#p85950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85950#p85950"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85950#p85950"><![CDATA[
Maybe this will help .. <br><div class="codebox"><p>Code: </p><pre><code>setudef flag staff bind pub - "!global" globalproc global { nick uhost hand channel text } {    if {[lsearch -exact [channel info $chan] +staff] == -1} { }    if {$text == ""} {       putserv "privmsg $chan :\002FOUT:\002 Gelieve een global op te geven."    }    if {$text != ""} {         putserv "PRIVMSG #twor :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"         putserv "PRIVMSG #tworSTAFF :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"         putserv "PRIVMSG #tworPA :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"    } }</code></pre></div>Voor hulp kun je me altijd bereiken op #djoezy (Quakenet)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9826">Djoezy</a> — Mon Nov 24, 2008 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-11-24T10:27:07-04:00</updated>

		<published>2008-11-02T19:06:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85714#p85714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85714#p85714"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85714#p85714"><![CDATA[
Did you remember to create a "binding" to trigger the code?<br>ie:<br>bind pub myword myproc<br><br>Also, "global" is a native tcl command, it would usually be a very bad idea to replace this with your own proc. Most likely you'll break lots of other stuffs. Please consider a different name for your proc (function).<br><br>Edit: There also seems to be a variable name mixup regarding the channel argument.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Nov 02, 2008 7:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-11-02T15:57:14-04:00</updated>

		<published>2008-11-02T15:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85713#p85713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85713#p85713"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85713#p85713"><![CDATA[
It's my first script :d But there are no error's showing up when loading or running :s<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Sun Nov 02, 2008 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-11-02T11:20:04-04:00</updated>

		<published>2008-11-02T11:20:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85712#p85712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85712#p85712"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85712#p85712"><![CDATA[
If you could describe the error in nature, that would certainly help diagnosing the problem. At a quick glance however, it would seem you've forgotten to "escape" some brackets ([]) to prevent command substitution.<br><br>Other than that, there are a few code structures that could be a bit "cleaner", but nevertheless they should not hamper the operation of the script...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Nov 02, 2008 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jeroen_005]]></name></author>
		<updated>2008-11-02T06:07:48-04:00</updated>

		<published>2008-11-02T06:07:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85710#p85710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85710#p85710"/>
		<title type="html"><![CDATA[!global command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85710#p85710"><![CDATA[
Do someone know whats there wrong with this script:<br><div class="codebox"><p>Code: </p><pre><code>setudef flag staffproc global { nick uhost hand channel text } {   if {[lsearch -exact [channel info $chan] +staff] == -1} { }    if {$text == ""} {       putserv "privmsg $chan :\002FOUT:\002 Gelieve een global op te geven."    }   if {$text != ""} {        putserv "PRIVMSG #twor :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"        putserv "PRIVMSG #tworSTAFF :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"        putserv "PRIVMSG #tworPA :\002GLOBAL:\002 [ \00307$nick\00307 ] $text"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10007">jeroen_005</a> — Sun Nov 02, 2008 6:07 am</p><hr />
]]></content>
	</entry>
	</feed>
