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

	<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>2003-07-04T13:35:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-07-04T13:35:45-04:00</updated>

		<published>2003-07-04T13:35:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23036#p23036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23036#p23036"/>
		<title type="html"><![CDATA[non case-sensitive arrays?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23036#p23036"><![CDATA[
alright, thx<blockquote class="uncited"><div>Or how about asking them not to use uppercase letters? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>this wont work - theres always some idiot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> whats more, some of the $chans are taken from eggdrops chanlist. but doesnt matter. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Jul 04, 2003 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-04T06:50:25-04:00</updated>

		<published>2003-07-04T06:50:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23018#p23018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23018#p23018"/>
		<title type="html"><![CDATA[non case-sensitive arrays?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23018#p23018"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc array_names_to_lowercase {array} {  upvar 1 $array a  set b [array get a]  unset a  foreach {n v} $b {set a([string tolower $n]) $v}}</code></pre></div>Or, if keeping the screwed up case is importtant, you could do an lsearch in a lowercase version of [array names the_array] and then fetch [lindex [array names the_array] index_returned_by_lsearch]<br><br>Or how about asking them not to use uppercase letters? <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=2878">user</a> — Fri Jul 04, 2003 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2003-07-04T06:45:09-04:00</updated>

		<published>2003-07-04T06:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23016#p23016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23016#p23016"/>
		<title type="html"><![CDATA[non case-sensitive arrays?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23016#p23016"><![CDATA[
hi<br>does anyone know an easy way of making arrays non case-sensitive? means, array(#chan) should be the same as array(#ChAn).<br><br>thats what i use in my script:<br>1. if { [info exists array($chan)] } { ...<br>2. if { $array($chan) == "value" } { ...<br>3. set array(#chan) "value"<br>4. [llength $array($chan)]<br>5. [lsearch $array($chan) ...<br><br>3. is set by users, so i dont know whether they use #chan or #ChaN or whatever else.<br>users can set values for each channel like "set flags(#mychan) o" but they dont have to. so flags(#mychan) may exist or may not exist.<br><br>so all these commands should see array(#chan) as array(#Chan) and so on... i found no easy way of switching off case-sensitivity, but perhaps one of you knows a way. hope this post is not too confusing...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Jul 04, 2003 6:45 am</p><hr />
]]></content>
	</entry>
	</feed>
