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

	<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-06-17T12:12:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2008-06-17T12:12:48-04:00</updated>

		<published>2008-06-17T12:12:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83589#p83589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83589#p83589"/>
		<title type="html"><![CDATA[.+host .-host public commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83589#p83589"><![CDATA[
from tcl-commands.doc<blockquote class="uncited"><div>  getuser &lt;handle&gt; &lt;entry-type&gt; [extra info]<br>    Description: an interface to the new generic userfile support. Valid<br>      entry types are:<br>        BOTFL   - returns the current bot-specific flags for the user<br>                  (bot-only)<br>        BOTADDR - returns a list containing the bot's address, telnet port,<br>                  and relay port (bot-only)<br>        HOSTS   - returns a list of hosts for the user<br>        LASTON  - returns a list containing the unixtime last seen and the<br>                  last seen place. LASTON #channel returns the time last<br>                  seen time for the channel or 0 if no info exists.<br>        INFO    - returns the user's global info line<br>        XTRA    - returns the user's XTRA info<br>        COMMENT - returns the master-visible only comment for the user<br>        EMAIL   - returns the user's e-mail address<br>        URL     - returns the user's url<br>        HANDLE  - returns the user's handle as it is saved in the userfile<br>        PASS    - returns the user's encrypted password<br>    Returns: info specific to each entry-type<br>    Module: core<br><br>  setuser &lt;handle&gt; &lt;entry-type&gt; [extra info]<br>    Description: this is the counterpart of getuser. It lets you set the<br>      various values. Other then the ones listed below, the entry-types are<br>      the same as getuser's.<br>        PASS    - sets a users password (no third arg will clear it)<br>        HOSTS   - if used with no third arg, all hosts for the user will be<br>                  be cleared. Otherwise, *1* hostmask is added <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>        LASTON  - This setting has 3 forms. "setuser &lt;handle&gt; LASTON<br>                  &lt;unixtime&gt; &lt;place&gt;" sets global LASTON time, "setuser<br>                  &lt;handle&gt; LASTON &lt;unixtime&gt;" sets global LASTON time<br>                  (leaving the place field empty), and "setuser &lt;handle&gt;<br>                  LASTON &lt;unixtime&gt; &lt;channel&gt;" sets a users LASTON time for<br>                  a channel (if it is a  valid channel).<br>    Returns: nothing<br>    Module: core</div></blockquote>can't remember I've seen a remhots/delhost command, perhapse it was being provided by some other script?<br>something like this might work though<div class="codebox"><p>Code: </p><pre><code># remhost &lt;user&gt; &lt;hostmask&gt;#returns 1 if ok, 0 if notproc remhost {user host} {if {([validuser $user]) &amp;&amp; ([set ind [lsearch -exact [set hostlist [getuser $user HOSTS]] $host]] != -1)} {set hostlist [lreplace $hostlist $ind $ind]foreach {h} $hostlist { setuser $user HOSTS $h }return 1} else {return 0}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jun 17, 2008 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2008-06-17T11:45:48-04:00</updated>

		<published>2008-06-17T11:45:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83587#p83587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83587#p83587"/>
		<title type="html"><![CDATA[.+host .-host public commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83587#p83587"><![CDATA[
Half problem solved but remhost or delhost it's out of line <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><blockquote class="uncited"><div>bind pub o "+host" pub:addhost<br>#that's for user<br>bind pub n ".+host" pub:changehost<br>#that's for bots or other people<br><br>proc pub:addhost { nick userhost hand chan host  } {<br> if {$host == ""} {<br> puthelp "privmsg $chan :+host &lt;your-new-hostname&gt;" <br> return 0<br>}<br>  set hostname [lindex $host 0]<br>  addhost $hand $hostname<br>  puthelp "privmsg $chan :Added hostname $hostname to $hand"<br>}<br><br>proc pub:changehost { nick userhost hand chan text  } {<br> set handle [lindex $text 0]<br> set newhost [lindex $text 1]<br> if {$text == ""} {<br> puthelp "privmsg $chan :.+host &lt;handle&gt; &lt;new-hostname&gt; (to see a handle use: !whois &lt;nickname&gt;)" <br> return 0<br>}<br>  addhost  $handle $newhost<br>  puthelp "privmsg $chan :Added hostname $newhost to $handle "<br>}<br>putlog "Addhost Loaded"</div></blockquote>The script it's tested and working fine. Feel free to modify.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Tue Jun 17, 2008 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Getodacul]]></name></author>
		<updated>2008-06-17T09:56:44-04:00</updated>

		<published>2008-06-17T09:56:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83586#p83586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83586#p83586"/>
		<title type="html"><![CDATA[.+host .-host public commands]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83586#p83586"><![CDATA[
I need a script to add or remove a host <span style="text-decoration:underline">on channel</span>. <blockquote class="uncited"><div>&lt;me&gt; .+host User1 *!*@new-hostname.tld<br>&lt;Bot&gt; *!*@new-hostname.tld added to User1</div></blockquote>I find some tcl's that convert some dcc commands in public commands but modifications make that scripts broken or useless <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9046">Getodacul</a> — Tue Jun 17, 2008 9:56 am</p><hr />
]]></content>
	</entry>
	</feed>
