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

	<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-04-22T07:58:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-22T07:58:13-04:00</updated>

		<published>2003-04-22T07:58:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19331#p19331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19331#p19331"/>
		<title type="html"><![CDATA[alltools.tcl contains buggy ispermowner]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19331#p19331"><![CDATA[
This only happens when users deviate from the example given in the config file.<br><div class="codebox"><p>Code: </p><pre><code>set owner "MrLame, MrsLame"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 22, 2003 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-22T07:45:30-04:00</updated>

		<published>2003-04-22T07:45:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19329#p19329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19329#p19329"/>
		<title type="html"><![CDATA[alltools.tcl contains buggy ispermowner]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19329#p19329"><![CDATA[
The ISPERMOWNER that comes with the bot (v. 1.6.13):<br><br>proc ispermowner {hand} {<br>  global owner<br><br>  regsub -all -- , [string tolower $owner] "" owners<br>  if {([matchattr $hand n]) &amp;&amp; \<br>      ([lsearch -exact $owners [string tolower $hand]] != -1)} then {<br>    return 1<br>  }<br>  return 0<br>}<br><br>the regsub line is buggy, it should be<br>  regsub -all -- , [string tolower $owner] " " owners<br><br>The current form causes the string to become <br>"owner1owner2owner3" in some cases.<br><br>I suggest this change:<br>regsub -all -- , [string tolower $owner] " " owners<br>regsub -all -- {[ ]+} $owners " " owners<p>Statistics: Posted by Guest — Tue Apr 22, 2003 7:45 am</p><hr />
]]></content>
	</entry>
	</feed>
