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

	<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>2005-01-11T21:20:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-11T21:20:19-04:00</updated>

		<published>2005-01-11T21:20:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45297#p45297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45297#p45297"/>
		<title type="html"><![CDATA[Character ~ in the IRC /whois reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45297#p45297"><![CDATA[
No problemo. <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=4875">awyeah</a> — Tue Jan 11, 2005 9:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-01-11T21:10:26-04:00</updated>

		<published>2005-01-11T21:10:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45295#p45295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45295#p45295"/>
		<title type="html"><![CDATA[Just a thanks re the ~]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45295#p45295"><![CDATA[
Once again guys .. most helpful<br><br>Cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jan 11, 2005 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-11T20:45:20-04:00</updated>

		<published>2005-01-11T20:45:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45293#p45293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45293#p45293"/>
		<title type="html"><![CDATA[Character ~ in the IRC /whois reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45293#p45293"><![CDATA[
It doesn't even matter. If you use tcl to process the user@host, you can use the string trimleft function and trim out the "~" if it exists or not. That way you can be safe.<br><div class="codebox"><p>Code: </p><pre><code>set uhost [string trimleft [lindex [split $uhost "@"] 0] "~"]@[lindex [split $uhost "@"] 1]</code></pre></div>Or say maybe you can make it detect if {[string index $uhost 0] == "~"} then go ahead and string map it and replace it by an "*" wildcard or do what ever you want. There are many ways to check and deal with this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jan 11, 2005 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-01-11T17:56:24-04:00</updated>

		<published>2005-01-11T17:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45287#p45287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45287#p45287"/>
		<title type="html"><![CDATA[Character ~ in the IRC /whois reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45287#p45287"><![CDATA[
<blockquote class="uncited"><div>i need to deal with the ~ programmatically</div></blockquote>Take a look at this <a href="http://forum.egghelp.org/viewtopic.php?t=8741" class="postlink">post</a> by <a href="http://forum.egghelp.org/profile.php?mode=viewprofile&amp;u=2878" class="postlink">user</a> for an example of dealing with tildes (~) in hostmasks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Jan 11, 2005 5:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kic]]></name></author>
		<updated>2005-01-11T17:41:25-04:00</updated>

		<published>2005-01-11T17:41:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45286#p45286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45286#p45286"/>
		<title type="html"><![CDATA[Re: Character ~ in the IRC /whois reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45286#p45286"><![CDATA[
<blockquote class="uncited"><div>Sometimes a /whois will give the reply (for example) :-<br><br>nick is ~<a href="mailto:somebody@somewhere.com">somebody@somewhere.com</a><br><br>and sometimes :-<br><br>nick is <a href="mailto:somebody@somewhere.com">somebody@somewhere.com</a><br><br>i need to deal with the ~ programmatically, so i wonder if i could get an explanation of what it is/does?<br><br>something to do with ident i suspect</div></blockquote>All it is, is the lack of an 'ident' server on the shell machine.<br>Most IRC Servers nowadays require an ident response from users.<br><br>If the machine the bot is running on, does not have an ident server running, or the irc server is unable to connect to it, the IRC server will set the users hostmask as ~<a href="mailto:ident@domain.com">ident@domain.com</a><br><br>if the machine DOES have an ident server running, AND the irc server is able to contact it, it will set the users hostmask as <a href="mailto:ident@domain.com">ident@domain.com</a> without the ~<br><br>Anyways, essentially if you want to take this into account when scripting<br>and matching hostmasks, you can effectively match up the hostmask with wildcards. for example, if in the userfile the bot has a +host for a user<br>as: *!*<a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a><br><br>Then these two hostmasks would be valid:<br><a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a><br>~<a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a><br><br>However, if in the bots user file +host entry looks like this:<br>*!<a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a><br><br>Then only <a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a> hostmask would match, <br>and ~<a href="mailto:someone@this.users.vhost.com">someone@this.users.vhost.com</a> hostmask would NOT match.<br><br>Hope that explains it a bit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5874">kic</a> — Tue Jan 11, 2005 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2005-01-11T13:53:48-04:00</updated>

		<published>2005-01-11T13:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45279#p45279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45279#p45279"/>
		<title type="html"><![CDATA[Character ~ in the IRC /whois reply]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45279#p45279"><![CDATA[
Sometimes a /whois will give the reply (for example) :-<br><br>nick is ~<a href="mailto:somebody@somewhere.com">somebody@somewhere.com</a><br><br>and sometimes :-<br><br>nick is <a href="mailto:somebody@somewhere.com">somebody@somewhere.com</a><br><br>i need to deal with the ~ programmatically, so i wonder if i could get an explanation of what it is/does?<br><br>something to do with ident i suspect<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Jan 11, 2005 1:53 pm</p><hr />
]]></content>
	</entry>
	</feed>
