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

	<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>2002-08-26T08:09:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-08-26T08:09:00-04:00</updated>

		<published>2002-08-26T08:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10036#p10036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10036#p10036"/>
		<title type="html"><![CDATA[$char problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10036#p10036"><![CDATA[
well Slennox,<br>                   Thanx for the replay.. I had a read over that url<br><blockquote class="uncited"><div>You also might find the following site useful: <br><a href="http://www.soft.net.uk/staffs/eggdrop/characters.html" class="postlink">http://www.soft.net.uk/staffs/eggdrop/characters.html</a></div></blockquote>It has helped out alot.. I am still learning strings, so that was half my problem! <br><br>I have made it work now.. But I did it the hard way (alot of coding and hours) I am looking at redoing it all with strings and making the 4 page script smaller. Thanx <br><br>Site rox<br>----------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Mon Aug 26, 2002 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2002-08-24T21:43:25-04:00</updated>

		<published>2002-08-24T21:43:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9998#p9998</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9998#p9998"/>
		<title type="html"><![CDATA[$char problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9998#p9998"><![CDATA[
Somewhere in the script, you're not handling strings/lists correctly, and this will cause problems with 'special' characters like the backslash. The problem is occuring at or before this point:<br><div class="codebox"><p>Code: </p><pre><code>set asus_who [lindex $vasus 0]</code></pre></div>So we'd need to see the parts of the script that lead up to this.<br><br>You also might find the following site useful:<br><a href="http://www.soft.net.uk/staffs/eggdrop/characters.html" class="postlink">http://www.soft.net.uk/staffs/eggdrop/characters.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Sat Aug 24, 2002 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-08-23T23:15:52-04:00</updated>

		<published>2002-08-23T23:15:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9981#p9981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9981#p9981"/>
		<title type="html"><![CDATA[$char problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9981#p9981"><![CDATA[
<blockquote class="uncited"><div>[12:52pm] &lt;Asustek&gt; [asus] Administrator Op (Kissmine)<br>[12:52pm] -Asustek- You have been Oped in #helpline<br>[12:52pm] &lt;Kissmine&gt; `op Moust\gone<br>[12:52pm] -Asustek- Moustgone is not in #helpline</div></blockquote>I have been writing this script for about a week.. I have found my first problem.<br><div class="codebox"><p>Code: </p><pre><code>set asus_who [lindex $vasus 0]if {[onchan $asus_who $chan] == "0"} {  puthelp "NOTICE $nick :$asus_who is not in \002$chan\002"  return 0  }  puthelp "PRIVMSG $asus(home) :$asus(logo) Oped \037(\037\002$nick!$uhost\002\037)\037 $chan \037\[\037\002Oped $asus_who\037\002]\037"  puthelp "NOTICE $nick :Given ops to \002$asus_who\002 in \002$chan\002"  puthelp "NOTICE $asus_who :You have been Oped in \002$chan\002 by \002$nick\002"  pushmode $chan +o $asus_who  return 0 }}</code></pre></div><br>Now I looked into using strings (but I am still learning them) I came up with something like this.. But it dont work!<br><div class="codebox"><p>Code: </p><pre><code>set asus_who [lindex $vasus 0]if {[string match [lrange $asus_who 1 end] "\"]} {[string replace "\" "$char(141)}if {[onchan $asus_who $chan] == "0"} {  puthelp "NOTICE $nick :$asus_who is not in \002$chan\002"  return 0  }  puthelp "PRIVMSG $asus(home) :$asus(logo) Oped \037(\037\002$nick!$uhost\002\037)\037 $chan \037\[\037\002Oped $asus_who\037\002]\037"  puthelp "NOTICE $nick :Given ops to \002$asus_who\002 in \002$chan\002"  puthelp "NOTICE $asus_who :You have been Oped in \002$chan\002 by \002$nick\002"  pushmode $chan +o $asus_who  return 0 }}</code></pre></div>Thanx in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Fri Aug 23, 2002 11:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
