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

	<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>2010-01-19T19:30:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2010-01-19T19:30:41-04:00</updated>

		<published>2010-01-19T19:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91754#p91754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91754#p91754"/>
		<title type="html"><![CDATA[Need help with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91754#p91754"><![CDATA[
The part of your code below will only globalise the variable script and set it to 1 when the 'if' statement is passed. When the 'if' statement fails, the variable script does not exist. Rethink the logic.<br><div class="codebox"><p>Code: </p><pre><code>    if {[string match "*[string tolower $version]*" [string tolower $arg]]} {         global script         set script "1"         putserv "privmsg #test :using script var: $script"     }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jan 19, 2010 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[_TURBO_]]></name></author>
		<updated>2010-01-19T15:18:24-04:00</updated>

		<published>2010-01-19T15:18:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91749#p91749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91749#p91749"/>
		<title type="html"><![CDATA[Need help with variables]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91749#p91749"><![CDATA[
hi, need some help whit this script.<br><div class="codebox"><p>Code: </p><pre><code>set badversion {"logoscript" "script"}bind ctcr - VERSION clientinfproc clientinf {nick uhost hand dest key arg} {global badversionforeach version $badversion {if {[string match "*[string tolower $version]*" [string tolower $arg]]} {global scriptset script "1"putserv "privmsg #test :using script var: $script"}}}bind RAW - 671 whois:sslproc whois:ssl {from key text} {global "ssl"set ssl "[lindex [split $text " "] 4]"putserv "privmsg #test :using ssl var  $ssl"}bind pub - "!sendpass" spproc sp {nick uhost hand chan arg} {global "ssl" "script"putquick "whois $nick $nick"putserv "PRIVMSG $nick :\001VERSION\001"if {$script == "1"} {puthelp "privmsg #test :dont use script"if {$ssl != "a"} {puthelp "privmsg #test :please use ssl" }} else {puthelp "privmsg #test :Ok sending pass"}}</code></pre></div>Bot says  Tcl error [sp]: can't read "script": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11068">_TURBO_</a> — Tue Jan 19, 2010 3:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
