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

	<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>2001-10-20T12:56:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-20T12:56:00-04:00</updated>

		<published>2001-10-20T12:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=908#p908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=908#p908"/>
		<title type="html"><![CDATA[my anti /msg LOGIN script .. (help one thing needed to be fi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=908#p908"><![CDATA[
Case matters, eg: MaTTerS is different to matters.<br><br>Otherwise, the only other problem, is there is a unset command somwhere further down in the code (maybe another file, but it is loaded after this file).<br><br>If the variable is created globaly, it is available to all commands, if called for global use. The only time you should get this error, is if the variable was never created (no set command creating a default), or if it was created, but destroyed with unset command.<br><br>I would need to see the whole of your code, if I am to tell you where the problem lies. If the code is longer than 20 lines, try putting onto some web-space, and paste the address. Large files waste the forum, and can cause small problems.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Oct 20, 2001 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-20T12:12:00-04:00</updated>

		<published>2001-10-20T12:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=906#p906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=906#p906"/>
		<title type="html"><![CDATA[my anti /msg LOGIN script .. (help one thing needed to be fi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=906#p906"><![CDATA[
That was what my original code was... the bot just says<br><br>&lt;^Testb0t^&gt; [14:45] Tcl error [nologinsoz]: can't read "nologinmsg": no such variable<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><p>Statistics: Posted by Guest — Sat Oct 20, 2001 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-20T12:03:00-04:00</updated>

		<published>2001-10-20T12:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=905#p905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=905#p905"/>
		<title type="html"><![CDATA[my anti /msg LOGIN script .. (help one thing needed to be fi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=905#p905"><![CDATA[
Try the following<br><div class="codebox"><p>Code: </p><pre><code>set nologinmsg "Idiot! I'm not a Stormbot! you cant login like this!"bind msg * login nologinsozproc nologinsoz {nick args} {  global nologinmsg  set nologinidiot $nick  puthelp "NOTICE $nick :$nologinmsg"  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Oct 20, 2001 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-20T11:58:00-04:00</updated>

		<published>2001-10-20T11:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=904#p904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=904#p904"/>
		<title type="html"><![CDATA[my anti /msg LOGIN script .. (help one thing needed to be fi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=904#p904"><![CDATA[
Hey... <br>I just wrote my first TCL script.. after several hours of trying to get the syntax right, I finally got it working...<br><br>Basically when you use /msg bot login YOUR-PASS .. it will notice the user with a set message saying somthing like 'Im not a stormbot'.<br><br>The problem I'm having is that I cant set the variable for the set msg outside the procedure:<br><br>-- HERES MY CODE --<br><br>bind msg * login nologinsoz<br><br>proc nologinsoz {nick args} {<br><br>set nologinmsg "Idiot! I'm not a Stormbot! you cant login like this!"<br><br>set nologinidiot $nick<br>puthelp "NOTICE $nick :$nologinmsg"<br>return 0<br>}<br><br>What do i have to change so I could set the 'nologinmsg' variable outside the procedure? THNX!<br><br>(btw the 'set nologinidiot $nick' is for another part of the script where the person who tried it's nick can be recalled, not yet done that bit tho)<br><br>ta<p>Statistics: Posted by Guest — Sat Oct 20, 2001 11:58 am</p><hr />
]]></content>
	</entry>
	</feed>
