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

	<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-10-14T13:17:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LtPhil]]></name></author>
		<updated>2003-10-14T13:17:25-04:00</updated>

		<published>2003-10-14T13:17:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28476#p28476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28476#p28476"/>
		<title type="html"><![CDATA[maskhost not working right?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28476#p28476"><![CDATA[
quite a few informative replies here <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>thank you all for your help...<br><br>sir_fz: that works well, the only problem being i won't always have a $chan to throw in there <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>ppslim: very nifty little bit of code there, i like!  *uses*<br><br>egghead: strict-host was 0, and that's why maskhost was getting confused  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> -- good call<br><br>again, thank you all for your help, and especially for <strong class="text-strong">quick</strong> responses! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3577">LtPhil</a> — Tue Oct 14, 2003 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-10-14T09:12:35-04:00</updated>

		<published>2003-10-14T09:12:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28471#p28471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28471#p28471"/>
		<title type="html"><![CDATA[Re: maskhost not working right?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28471#p28471"><![CDATA[
<blockquote class="uncited"><div>i'm trying to set a ban in the form *!*ident@*.isp.com, but when i use maskhost, it has a problem with people who have a tilde (~) in their ident.<br><br>when a user is "GNR!~<a href="mailto:GNR@xxxxxx.client.attbi.com">GNR@xxxxxx.client.attbi.com</a>", maskhost returns "*!GNR@*.attbi.com".  how can i make it (or make another function) that returns "*!*GNR@*.attbi.com" or "*!*GNR@*.client.attbi.com" ?</div></blockquote>Not sure what you have been trying...<br><blockquote class="uncited"><div>.tcl set strict-host 0<br>Tcl: 0<br>.tcl maskhost GNR!~<a href="mailto:GNR@xxxxxx.client.attbi.com">GNR@xxxxxx.client.attbi.com</a><br>Tcl: *!*GNR@*.attbi.com<br>.tcl set strict-host 1<br>Tcl: 1<br>.tcl maskhost GNR!~<a href="mailto:GNR@xxxxxx.client.attbi.com">GNR@xxxxxx.client.attbi.com</a><br>Tcl: *!?GNR@*.attbi.com</div></blockquote>Additional note: if you have "strict-host" set to 0, the username send to your proc (and subsequently send to the maskhost proc) does not contain the leading "~", eventhough the user has this leading tilde when on IRC. <br><br>You may want to set strict-host to 1 which will keep the leading tilde.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Oct 14, 2003 9:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-10-14T09:03:53-04:00</updated>

		<published>2003-10-14T09:03:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28469#p28469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28469#p28469"/>
		<title type="html"><![CDATA[maskhost not working right?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28469#p28469"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc my_maskhost {in} {  set in [split $in !@]  set nick [lindex $in 0]  set ident [lindex $in 1]  set host [lindex $in 2]  if {[string length [join [lrange [set a [split $host .]] end-1 end] {}]] &lt; 6} {    set host [join [lrange $a end-2 end] .]  } else {    set host [join [lrange $a end-1 end] .]  }  return "*!*${ident}@*.${host}"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 14, 2003 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-10-14T08:52:39-04:00</updated>

		<published>2003-10-14T08:52:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28468#p28468</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28468#p28468"/>
		<title type="html"><![CDATA[maskhost not working right?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28468#p28468"><![CDATA[
try <strong class="text-strong">[maskhost *[getchanhost $nick $chan]]</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Oct 14, 2003 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LtPhil]]></name></author>
		<updated>2003-10-14T08:46:23-04:00</updated>

		<published>2003-10-14T08:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28466#p28466</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28466#p28466"/>
		<title type="html"><![CDATA[maskhost not working right?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28466#p28466"><![CDATA[
i'm trying to set a ban in the form *!*ident@*.isp.com, but when i use maskhost, it has a problem with people who have a tilde (~) in their ident.<br><br>when a user is "GNR!~<a href="mailto:GNR@xxxxxx.client.attbi.com">GNR@xxxxxx.client.attbi.com</a>", maskhost returns "*!GNR@*.attbi.com".  how can i make it (or make another function) that returns "*!*GNR@*.attbi.com" or "*!*GNR@*.client.attbi.com" ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3577">LtPhil</a> — Tue Oct 14, 2003 8:46 am</p><hr />
]]></content>
	</entry>
	</feed>
