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

	<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>2001-10-07T12:43:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-07T12:43:00-04:00</updated>

		<published>2001-10-07T12:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=345#p345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=345#p345"/>
		<title type="html"><![CDATA[auto add hosts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=345#p345"><![CDATA[
thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":grin:" title="Very Happy"><p>Statistics: Posted by Guest — Sun Oct 07, 2001 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-07T12:18:00-04:00</updated>

		<published>2001-10-07T12:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=344#p344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=344#p344"/>
		<title type="html"><![CDATA[auto add hosts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=344#p344"><![CDATA[
As per the request on IRC.<br><div class="codebox"><p>Code: </p><pre><code>proc myhostis {frombot cmd arg} {  set added 0  set arg [string tolower $arg]  foreach host [split [getuser $frombot HOSTS]] {    set host [string tolower $host]    if {[string match $arg $host]} {       set added 1     }  }  if {!$added} {    putlog "(**) Added host $arg to $frombot"    setuser $frombot HOSTS "*![lindex [split $arg !] 1]  }  return 0}</code></pre></div>&lt;font size=-1&gt;[ This Message was edited by: ppslim on 2001-10-07 10:19 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Oct 07, 2001 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-07T12:03:00-04:00</updated>

		<published>2001-10-07T12:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=343#p343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=343#p343"/>
		<title type="html"><![CDATA[auto add hosts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=343#p343"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc myhostis {frombot cmd arg} {  set added 0  set arg [string tolower $arg]  foreach host [split [getuser $frombot HOSTS]] {    set host [string tolower $host]    if {[string match $arg $host]} {       set added 1     }  }  if {!$added} {    putlog "(**) Added host $arg to $frombot"    setuser $frombot HOSTS [maskhost $arg]  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Oct 07, 2001 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-07T11:47:00-04:00</updated>

		<published>2001-10-07T11:47:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=342#p342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=342#p342"/>
		<title type="html"><![CDATA[auto add hosts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=342#p342"><![CDATA[
proc myhostis {frombot cmd arg} {<br>  set added 0<br>  set arg [string tolower $arg]<br>  foreach host [split [getuser $frombot HOSTS]] {<br>    set host [string tolower $host]<br>    if {[string match $arg $host]} { <br>      set added 1 <br>    }<br>  }<br>  if {!$added} {<br>    putlog "(**) Added host $arg to $frombot"<br>    setuser $frombot HOSTS $arg<br>  }<br>  return 0<br>}<br><br>hey! i have this proc so my bots will auto add hosts when their host changes, but they add it like this.. packiman!<a href="mailto:paiakam@blah.com">paiakam@blah.com</a>, im wondering how to set them to add hosts like this.. *!<a href="mailto:paiakam@blah.com">paiakam@blah.com</a><br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by Guest — Sun Oct 07, 2001 11:47 am</p><hr />
]]></content>
	</entry>
	</feed>
