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

	<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>2004-07-07T05:04:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-07T05:04:03-04:00</updated>

		<published>2004-07-07T05:04:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38310#p38310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38310#p38310"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38310#p38310"><![CDATA[
*string compare* always returns 0 if both strings are equal.<br><div class="codebox"><p>Code: </p><pre><code>if {(([string compare -nocase $pattern $string]) == 0)}</code></pre></div>*string match* always returns 1 if both strings are equal.<br><div class="codebox"><p>Code: </p><pre><code>if {(([string equal -nocase $pattern $string]) == 1)}</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {([string equal -nocase $pattern $string])}</code></pre></div>Both these string equals would technically be the same.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jul 07, 2004 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-07T04:56:49-04:00</updated>

		<published>2004-07-07T04:56:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38308#p38308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38308#p38308"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38308#p38308"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {([string compare -nocase $pattern $string])}</code></pre></div></div></blockquote>Wrong, string compare would return 0 there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Wed Jul 07, 2004 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-06T21:19:55-04:00</updated>

		<published>2004-07-06T21:19:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38295#p38295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38295#p38295"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38295#p38295"><![CDATA[
Well there are alot of methods for comparing to strings/variables.<br><br>You can change the case letters, yes I know but this was just to get the script working. There are many solutions availiable, depening upon your needs:<br><br>You can use all of these: (some have exceptions... though)<br><div class="codebox"><p>Code: </p><pre><code>if {($botnick == $target)} </code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {([string tolower $botnick] == [string tolower $target])}</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {([isbotnick $target])}</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {([string equal -nocase $pattern $string])}</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>if {([string compare -nocase $pattern $string])}</code></pre></div>There maybe more types of string/variable comparison<br>methods other than this as well, of which I am not aware.<br><br>But all commands these will compare, some might have alot of<br>accessibility and some might be very limited and restricted.<br><br>All will give basically the same results, but some conditions<br>yeah might not work if lower and upper characters are present<br>while comparing with commands, which give limited access.<br><br>I mainly use string equal or string comparison commands when scripting.<br>But that was just a small example to get the guys script working.<br><br>There can be alot of variations as alot of string manipulation<br>commands such as equal, comapare, ==, !=, and botnick <br>manipulation isbotnick, botisop etc are availiable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 06, 2004 9:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-06T14:06:38-04:00</updated>

		<published>2004-07-06T14:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38278#p38278</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38278#p38278"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38278#p38278"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>$target == $botnick is not necesarly correct cos foo is not equal with FOO or FoO and so on, so either "string tolower" them or use "string equal -nocase $target $botnick"<br><br>This has been discussed 100 times before, why don't you understand it once and for all?</div></blockquote>String equal BAAAAD, isbotnick GOOOOD!</div></blockquote>  isbotnick baddddddd, not compatible with my 1.1.5's ;x<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Jul 06, 2004 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-07-06T14:08:25-04:00</updated>

		<published>2004-07-06T14:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38277#p38277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38277#p38277"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38277#p38277"><![CDATA[
I was kinda talking in general. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> I haven't mentioned nothing about the isbotnick cos you've done it before me so there was no point on repeating the same thing, I just pointed out that thre is a BIG difference and should be taken in consideration. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 06, 2004 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-06T13:46:23-04:00</updated>

		<published>2004-07-06T13:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38275#p38275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38275#p38275"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38275#p38275"><![CDATA[
<blockquote class="uncited"><div>$target == $botnick is not necesarly correct cos foo is not equal with FOO or FoO and so on, so either "string tolower" them or use "string equal -nocase $target $botnick"<br><br>This has been discussed 100 times before, why don't you understand it once and for all?</div></blockquote>String equal BAAAAD, isbotnick GOOOOD!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Tue Jul 06, 2004 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-07-06T10:24:22-04:00</updated>

		<published>2004-07-06T10:24:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38265#p38265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38265#p38265"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38265#p38265"><![CDATA[
$target == $botnick is not necesarly correct cos foo is not equal with FOO or FoO and so on, so either "string tolower" them or use "string equal -nocase $target $botnick"<br><br>This has been discussed 100 times before, why don't you understand it once and for all?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 06, 2004 10:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-05T18:25:05-04:00</updated>

		<published>2004-07-05T18:25:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38243#p38243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38243#p38243"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38243#p38243"><![CDATA[
I do.<br><br>/me puts hand up<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jul 05, 2004 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-05T15:17:50-04:00</updated>

		<published>2004-07-05T15:17:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38240#p38240</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38240#p38240"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38240#p38240"><![CDATA[
Why doesn't anyone use isbotnick?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Mon Jul 05, 2004 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-05T13:37:08-04:00</updated>

		<published>2004-07-05T13:37:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38239#p38239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38239#p38239"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38239#p38239"><![CDATA[
When I make it, it always has to work!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jul 05, 2004 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-07-05T03:06:39-04:00</updated>

		<published>2004-07-05T03:06:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38211#p38211</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38211#p38211"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38211#p38211"><![CDATA[
Works perfectly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks for fixing it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jul 05, 2004 3:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-07-05T02:47:19-04:00</updated>

		<published>2004-07-05T02:47:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38210#p38210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38210#p38210"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38210#p38210"><![CDATA[
Ill put it in right now, and see if it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jul 05, 2004 2:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-04T23:30:38-04:00</updated>

		<published>2004-07-04T23:30:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38206#p38206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38206#p38206"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38206#p38206"><![CDATA[
Here give this a try, it should work.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "*+o*" op:nick proc op:nick {nick uhost hand chan mode target} {  global botnick  if {($mode == "+o") &amp;&amp; ($target == $botnick)} {   if {([matchattr $hand o])} {   putserv "PRIVMSG $chan :Why thank you $nick!"   }   if {(![matchattr $hand o])} {   putquick "MODE $chan -o $botnick"   putserv "PRIVMSG $chan :Please do not op me $nick!"   }  } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jul 04, 2004 11:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-04T17:14:57-04:00</updated>

		<published>2004-07-04T17:14:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38202#p38202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38202#p38202"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38202#p38202"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {$nick == "$botnick" || [matchattr $nick "o"]) {</code></pre></div>Change to (as <strong class="text-strong">gb</strong> posted):<div class="codebox"><p>Code: </p><pre><code>if {($nick == $::botnick) || ([matchattr $hand o])} {</code></pre></div>Notice absence of quotation marks and also notice the right brace you missed putting in.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Jul 04, 2004 5:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-04T17:08:51-04:00</updated>

		<published>2004-07-04T17:08:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38201#p38201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38201#p38201"/>
		<title type="html"><![CDATA[A script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38201#p38201"><![CDATA[
try something like this:<div class="codebox"><p>Code: </p><pre><code>if {($nick == $::botnick) || ([matchattr $hand o])} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun Jul 04, 2004 5:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
