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

	<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-09-24T12:45:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2002-09-24T12:45:38-04:00</updated>

		<published>2002-09-24T12:45:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11313#p11313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11313#p11313"/>
		<title type="html"><![CDATA[Host exempt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11313#p11313"><![CDATA[
if {[string tolower $nick] == "NickServ"} { .. bla bla bla .. }<br>and<br>if {[string match "$foo" "$bar"]} { .. bla bla bla .. }<br><br>Or something like this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> .. hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 24, 2002 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-24T11:31:15-04:00</updated>

		<published>2002-09-24T11:31:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11308#p11308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11308#p11308"/>
		<title type="html"><![CDATA[Host exempt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11308#p11308"><![CDATA[
The answer could be yes, and it can quite easily be no.<br><br>What information is stored in what variable.<br><br>If you are using a msg bind, I am guessing you are using somthing along the lines of<blockquote class="uncited"><div>proc procname {nick host hand arg} {</div></blockquote>If so, you are allmost there.<br><br>1: nick obviously is equal to the nickname triggering the bind. Host is equal to the user@hostname portion of the address.<br><br>IE nickname chanserv is chanserv!<a href="mailto:services@services.dal.net">services@services.dal.net</a><br><br>In a script, you can get a full IRC host-address, using "${nick}!${host}".<br><br>2: using just == in your if statments, is checking for a "if X equals Y" style check. You can't just throw a wildcard into a if statment, as IF will interpret it as a astrix, and not a wildcard.<br><br>To solve this, use the [string match] function.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Sep 24, 2002 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-24T10:57:48-04:00</updated>

		<published>2002-09-24T10:57:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11307#p11307</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11307#p11307"/>
		<title type="html"><![CDATA[Host exempt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11307#p11307"><![CDATA[
yes in a msg,<br>if {([isbotnick $nick]) || ([string tolower $nick] == "chanserv")  || ([string tolower $host] == "dal.net")} {return 0} <br>would it work?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Tue Sep 24, 2002 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-09-24T08:14:30-04:00</updated>

		<published>2002-09-24T08:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11302#p11302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11302#p11302"/>
		<title type="html"><![CDATA[Host exempt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11302#p11302"><![CDATA[
Um ... I hate to point this out but you are comparing a string which has be 'tolower'ed (i.e all characters in lower case) to a string which has captials in it.<br><br>Plus you might wanna check their hostmask as well - currently you're just checking nicks. Presumably this is in a msg bind?<br><br>Other than that I'm not sure of your problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Tue Sep 24, 2002 8:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-24T04:41:55-04:00</updated>

		<published>2002-09-24T04:41:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11292#p11292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11292#p11292"/>
		<title type="html"><![CDATA[Host exempt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11292#p11292"><![CDATA[
I wanna bot do nothing if it gets msg from exempt host for example *!*@*.dal.net<br>here is line from script, I'd like bot to do nothing if it's user matches *!*@*.dal.net address.<br>if {([isbotnick $nick]) || ([string tolower $nick] == "ChanServ")} {return 0}  <br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Tue Sep 24, 2002 4:41 am</p><hr />
]]></content>
	</entry>
	</feed>
