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

	<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>2008-02-22T14:41:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-02-22T14:41:45-04:00</updated>

		<published>2008-02-22T14:41:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81071#p81071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81071#p81071"/>
		<title type="html"><![CDATA[code help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81071#p81071"><![CDATA[
A few suggestions;<br><br>Instead of using <em class="text-italics">$person != $botnick</em>, considder using <em class="text-italics">[isbotnick $person]</em>.<br><br>Instead of using <em class="text-italics">$uhost != "<a href="mailto:sucker@microsoft.com">sucker@microsoft.com</a>"</em>, use <em class="text-italics">string equal [-nocase] "<a href="mailto:sucker@microsoft.com">sucker@microsoft.com</a>" &lt;userhost&gt;</em> for exact matching, or <em class="text-italics">string match [-nocase] "*@microsoft.com" &lt;userhost&gt;</em> for pattern matching. Replace &lt;userhost&gt; with the host to check (ie $uhost). use -nocase if you'd like the test to be case-insensitive (without the brackets).<br><br>Also, I find it abit unclear how to "combine" the two tests, should the whois-query be prevented if <strong class="text-strong">either</strong> test fails (nick is bot <strong class="text-strong">or</strong> host matches), or <strong class="text-strong">both</strong> (nick is bot <strong class="text-strong">and</strong> host matches).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Feb 22, 2008 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2008-02-22T09:53:28-04:00</updated>

		<published>2008-02-22T09:53:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81064#p81064</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81064#p81064"/>
		<title type="html"><![CDATA[Re: code help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81064#p81064"><![CDATA[
<blockquote class="uncited"><div>cant someone modify this<br><br>if {$person != $botnick} { putserv "WHOIS $person $person" }<br><br><br>to also check if that person has some *!*@host not to whois that person<br><br><br>ty in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Since you did not paste the whole proc, this may not work.<br><div class="codebox"><p>Code: </p><pre><code>if {$uhost != "sucker@microsoft.com" &amp;&amp; $person != $botnick} { putserv "WHOIS $person $person" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Fri Feb 22, 2008 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2008-02-22T04:55:47-04:00</updated>

		<published>2008-02-22T04:55:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81057#p81057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81057#p81057"/>
		<title type="html"><![CDATA[code help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81057#p81057"><![CDATA[
cant someone modify this<br><br>if {$person != $botnick} { putserv "WHOIS $person $person" }<br><br><br>to also check if that person has some *!*@host not to whois that person<br><br><br>ty in advance <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=6989">.pt</a> — Fri Feb 22, 2008 4:55 am</p><hr />
]]></content>
	</entry>
	</feed>
