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

	<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-02-13T18:36:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-13T18:36:04-04:00</updated>

		<published>2005-02-13T18:36:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46586#p46586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46586#p46586"/>
		<title type="html"><![CDATA[Re: add newhost when nick change]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46586#p46586"><![CDATA[
<blockquote class="uncited"><div>set nick [hand2nick $hand]<br>if {![string match "" $nick] &amp;&amp; [string match $newnick $nick]} {<br>if {![validuser "$nick!*@*"]} {</div></blockquote>My sleepy mind tells me, this will never be true, in case you register nicks only from the nickmask and he still has the new unknown nick newnick. hand2nick will not resolve and therefore it will never match with newnick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br>for nicktracing you would probably have to create a seperate global array/table.<br>ah, yes, please check the command validuser again in the doc, a hostmark will most likely not match a handle (though its posible). <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><blockquote class="uncited"><div>[23:48:46] &lt;StarZ|Clan&gt; Added Muh!*@*.* (no host) with no password and no flags.<br>[23:49:35] &lt;StarZ|Clan&gt; [23:49:35] tcl: evaluate (.tcl): validuser Muh!*@*.*<br>[23:49:35] &lt;StarZ|Clan&gt; Tcl: 1</div></blockquote><blockquote class="uncited"><div>   setuser $hand HOSTS "$nick!*@*" </div></blockquote>again, this can't work. you dont have the old handle, you must figure it out first to add the new, yet unknown, hostmark.<br>usually hostmark commands would use "addthishost &lt;pass&gt; &lt;hand&gt;". there is a tcl command to check the decoded password against the encrypted one in the userfile.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Feb 13, 2005 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[HecKel]]></name></author>
		<updated>2005-02-13T11:51:53-04:00</updated>

		<published>2005-02-13T11:51:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46576#p46576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46576#p46576"/>
		<title type="html"><![CDATA[add newhost when nick change]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46576#p46576"><![CDATA[
I have this code, but that doesn't work :S where is the error?<br><br>If you had a better idea that's wellcome <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>bind nick - * check_user_nickproc check_user_nick {nick uhost hand chan newnick} {if {[validuser $hand]} {utimer 120 [ask_user $hand $newnick]}}proc ask_user {hand newnick} {set nick [hand2nick $hand]if {![string match "" $nick] &amp;&amp; [string match $newnick $nick]} {if {![validuser "$nick!*@*"]} {puthelp "NOTICE $nick :Do you want to add this host to my db?"puthelp "NOTICE $nick :Try \002/msg LammestBot addthishost\002 to add this host"}}}bind msg - addthishost add_hostproc add_host {nick uhost hand args} {set line ""setuser $hand HOSTS "$nick!*@*"foreach host [getuser $hand HOSTS] {append line "$host "}if {$line != ""} {puthelp "PRIVMSG $nick :You hosts are:"puthelp "PRIVMSG $nick :$line"}}</code></pre></div>tnks HecKel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5906">HecKel</a> — Sun Feb 13, 2005 11:51 am</p><hr />
]]></content>
	</entry>
	</feed>
