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

	<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>2006-01-27T23:31:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-27T23:31:45-04:00</updated>

		<published>2006-01-27T23:31:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59810#p59810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59810#p59810"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59810#p59810"><![CDATA[
I'm sorry i had no internet, anyways Sir_fz thaks for all of your help I'm really very grateful to you, though the max correct password check didnt worked but I'm did some public testing, I will contact if i have to learn more thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri Jan 27, 2006 11:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-11T18:10:37-04:00</updated>

		<published>2006-01-11T18:10:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59327#p59327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59327#p59327"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59327#p59327"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc setHost uhost { set host [lindex [split $uhost @] 1] set n [llength [split $host .]] if {[string match "*.users.quakenet.org" $host]} {  set ehost *!*@[lindex [split $uhost @] 1] } elseif {[regexp -all {[A-z]{1,}(\.?)} $host] == $n &amp;&amp; ![regexp {[0-9]} $host]} {  set ehost *!*[string trimleft $uhost ~] } {  set ehost [maskhost $uhost] } set ehost}</code></pre></div>and try<div class="codebox"><p>Code: </p><pre><code>proc rightPass {v o s n h op} { upvar $v uv if {![info exists uv]} {  set uv [list [unixtime] 0] } foreach {ct co} $uv {break} if {[unixtime]-$ct &gt; $s} {  set uv [list [unixtime] 0]  foreach {ct co} $uv {break} } if {$co &gt;= $o} {return 0} if {![passwdok $h $op]} {   puthelp "NOTICE $n :password incorrect try again."   set uv [list [unixtime] [incr co]]   return 0 } unset uv return 1}</code></pre></div>And then use<div class="codebox"><p>Code: </p><pre><code>if {[rightPass wrongPass([string tolower $n]) 3 180 $n $h $oldpass]} { # He got the right pass}</code></pre></div>rightPass will return 0 if he got the wrongPass or if he flooded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jan 11, 2006 6:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-11T09:28:06-04:00</updated>

		<published>2006-01-11T09:28:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59320#p59320</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59320#p59320"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59320#p59320"><![CDATA[
I replaced the 2nd code wit this <br><div class="codebox"><p>Code: </p><pre><code>set ehost *!*@[lindex [split $uhost @] 1]</code></pre></div>but it still banning *!*<a href="mailto:ident@xyz.users.quakenet.org">ident@xyz.users.quakenet.org</a><br>and ..<br>I was using ...<br><div class="codebox"><p>Code: </p><pre><code>if {[passwdok $h $oldpass] != 1} { puthelp "NOTICE $n : password inncorrect try again." return 1}</code></pre></div>I removed it with your code, i have loaded the proc wrongPass but it doesnt seems to work:<br><div class="codebox"><p>Code: </p><pre><code>if {![wrongPass wrongPass([string tolower $n]) 3 180]} {  if {![passwdok $h $oldpass]} {  puthelp "NOTICE $n : password incorrect try again."  foreach {foo bar} $wrongPass([string tolower $n]) {break}   set wrongPass([string tolower $n]) [list [unixtime] [incr bar]]  } {   unset wrongPass([stringtolower $])   puthelp "NOTICE $n : Password incorrect, ignoring for 3 mints. try laters" }   return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Wed Jan 11, 2006 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-10T17:43:02-04:00</updated>

		<published>2006-01-10T17:43:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59313#p59313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59313#p59313"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59313#p59313"><![CDATA[
<blockquote class="uncited"><div>Is it possible to restrict users not to trigger a command more than 3 times if the password supplied is incorrect?<br>and if they tirgger it more than 3 times they will be ignored for lets say X mints.<br>I'm trying to figure that out but found it to be kinda too difficult. thanks for all the help</div></blockquote>Something like:<div class="codebox"><p>Code: </p><pre><code>proc wrongPass {v o s} { upvar $v uv if {![info exists uv]} {  set uv [list [unixtime] 0]; return 0 } foreach {ct co} $uv {break} if {[unixtime]-$ct &gt; $s} {  set uv [list [unixtime] 0]; return 0 } if {$co &gt;= $o} {  return 1 } return 0}</code></pre></div>and in each proc add:<div class="codebox"><p>Code: </p><pre><code>if {![wrongPass wrongPass([string tolower $nick]) 3 180]} { if {![passwdok $hand $pass]} {  foreach {foo bar} $wrongPass([string tolower $nick]) {break}  set wrongPass([string tolower $nick]) [list [unixtime] [incr bar]] } {  unset wrongPass([stringtolower $nick])  # do stuff... }}</code></pre></div>SYNTAX: isFlood &lt;global-variable&gt; &lt;limit&gt; &lt;seconds&gt;<blockquote class="uncited"><div>Sir_Fz: the host for QuakeNet registered users is still *!<a href="mailto:ident@username.users.quakenet.org">ident@username.users.quakenet.org</a> like<br>Quote:<br>*!*<a href="mailto:sexy@honeybee.users.quakenet.org">sexy@honeybee.users.quakenet.org</a><br>, I wanted it to be<br>Quote:<br>*!*@honeybee.users.quakenet.org<br><br>can you please change it?</div></blockquote>You didn't say tha in your initial post, you said<blockquote class="uncited"><div>4) registered quakenet users eg: *!<a href="mailto:honey@honey.users.quakenet.org">honey@honey.users.quakenet.org</a></div></blockquote>But to fix it, just change the 2nd<div class="codebox"><p>Code: </p><pre><code>set ehost *!*[string trimleft $uhost ~]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>set ehost *!*@[lindex [split $uhost @] 1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jan 10, 2006 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-10T07:05:19-04:00</updated>

		<published>2006-01-10T07:05:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59303#p59303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59303#p59303"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59303#p59303"><![CDATA[
Sir_Fz: the host for QuakeNet registered users is still *!<a href="mailto:ident@username.users.quakenet.org">ident@username.users.quakenet.org</a> like <blockquote class="uncited"><div>*!*<a href="mailto:sexy@honeybee.users.quakenet.org">sexy@honeybee.users.quakenet.org</a></div></blockquote>, I wanted it to be<blockquote class="uncited"><div> *!*@honeybee.users.quakenet.org</div></blockquote>can you please change it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Tue Jan 10, 2006 7:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-10T17:16:24-04:00</updated>

		<published>2006-01-10T03:09:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59301#p59301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59301#p59301"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59301#p59301"><![CDATA[
Is it possible to restrict users not to trigger a command more than 3 times if the password supplied is incorrect?<br>and if they tirgger it more than 3 times they will be ignored for lets say X mints.<br>I'm trying to figure that out but found it to be kinda too difficult. thanks for all the help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Tue Jan 10, 2006 3:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-01-09T05:11:34-04:00</updated>

		<published>2006-01-09T05:11:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59281#p59281</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59281#p59281"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59281#p59281"><![CDATA[
Trying to match to an unsplitted "$a" will cause an error if there is a brace in the password afaik, I'd use something like<br><div class="codebox"><p>Code: </p><pre><code>if {[llength [split $a]] &lt; 1} { puthelp "NOTICE $n :Usage: /msg $botnick REGISTER &lt;your password&gt;"} elseif {[validuser $n] || [validuser $h]} { puthelp "NOTICE $n :User already exists."} else { adduser $n [setHost $u]; setuser $n PASS [lindex [split $a] 0]  # other stuff}</code></pre></div>PS: Instead of using things like<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $h C] == "0"} {</code></pre></div>It's easier to just write<br><div class="codebox"><p>Code: </p><pre><code>if {![matchattr $h C]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Mon Jan 09, 2006 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-08T20:58:01-04:00</updated>

		<published>2006-01-08T20:58:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59273#p59273</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59273#p59273"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59273#p59273"><![CDATA[
Try it and see if it works. If there're any errors then paste the error log.<br><br>A tip I can provide is to code logically; for example:<br>In the register proc you have<div class="codebox"><p>Code: </p><pre><code>if {$a == ""} {</code></pre></div>and then you have<div class="codebox"><p>Code: </p><pre><code>if {$pass == ""} {</code></pre></div>but pass is the first word in $a, so logically those two if-statements are the same (this applies on the rest of the script too). So you can improve your code by avoiding these repetitions.<br><br>Also, improve the format of your code. Instead of:<div class="codebox"><p>Code: </p><pre><code>proc register:nick {n u h a} {global botnick set pass [lindex [split $a] 0] if {$a == ""} { puthelp "NOTICE $n :Usage: /msg $botnick REGISTER &lt;your password&gt;" return 1} # rest goes here...}</code></pre></div>try<div class="codebox"><p>Code: </p><pre><code>proc register:nick {n u h a} {global botnick set pass [lindex [split $a] 0] if {$a == ""} {  puthelp "NOTICE $n :Usage: /msg $botnick REGISTER &lt;your password&gt;"  return 1 } # rest goes here....}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 08, 2006 8:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-08T19:17:19-04:00</updated>

		<published>2006-01-08T19:17:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59271#p59271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59271#p59271"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59271#p59271"><![CDATA[
well, here is the try by me lets see if its good enough and if there are mistakes please correct them thanks.<br><div class="codebox"><p>Code: </p><pre><code>############## User management Tcl by Honey_bee @ Quakenetbind msg - register register:nick bind msg - addhost addhost:nick bind msg - chhandle chhandle:nickbind msg - chpass chpass:nickbind msg - auth auth:nickbind msg - deauth deauth:nick# register the user. proc register:nick {n u h a} { global botnick set pass [lindex [split $a] 0] if {$a == ""} { puthelp "NOTICE $n :Usage: /msg $botnick REGISTER &lt;your password&gt;" return 1} if {$pass == ""} { puthelp "NOTICE $n :You need to specify password try /msg $botnick &lt;you password&gt;" return 1} if {[validuser $h] == 1} { puthelp "NOTICE $n : $h is already registered, try to change your nickname /nick &lt;new nick&gt; and try again." putlog "$n tried to get registered with handle $h, which is already in use." return 1} if {$hand == "*" &amp;&amp; $a != ""} {   adduser $n [setHost $u]   setuser $n PASS [lindex [split $a] 0]   sendnote UM honey_bee "A new User is added with handle: $n and hostmask [setHost $u]"  puthelp "notice $n :You've been added with handle $n."  } {   puthelp "notice $n :user with nickname &lt; $h &gt; already registered or you didn't specify a password."  } } # add a new host. proc addhost:nick {n u h a} { global botnick set hh [lindex [split $a] 0]  set p [lindex [split $a] 1]  if {$a == ""} { puthelp "NOTICE $n :Usage: /msg $botnick addhost &lt;your password&gt;" return 1} if {$p == ""} { puthelp "NOTICE $n :You need to specify password try /msg $botnick addhost &lt;you password&gt;" return 1} if {[validuser $h] != 1} { puthelp "NOTICE $n :You are not REGISTERED, try to register yourself /msg $botnick REGISTER &lt;yourpass&gt;" return 1} if {[passwdok $hh ""] == 1} {puthelp "NOTICE $n :You don't have a password set, try to set a password /msg $botnick HELP PASS" return 1} if {[passwdok $hh $p] != 1} {puthelp "NOTICE $n : You have supplied a wrong password try again." return 1} if {[validuser $hh] &amp;&amp; [passwdok $hh $p]} {   setuser $hh HOSTS [setHost $u]   sendnote UM honey_bee "New host is added $hh: [setHost $u]"  puthelp "notice $n :Added you new host to handle $hh."  } {   puthelp "notice $n :Invalid handle or wrong password."  } }   proc chhandle:nick {n u h a} { global botnickset newhandle [lindex $a 0]set p [lrange $a 1 end] if {$a == ""} { puthelp "NOTICE $n :Usage: /msg $botnick chhandle &lt;newhandle&gt; &lt;your password&gt;" return 1} if {$p == ""} { puthelp "NOTICE $n :You need to specify password try /msg $botnick &lt;you password&gt;" return 1} if {[validuser $newhandle] == 1} { puthelp "NOTICE $n :This handle is already owned by someone try another." return 1} if {[validuser $h] != 1} { puthelp "NOTICE $n :You are not REGISTERED, try to register yourself /msg $botnick REGISTER &lt;yourpass&gt;" return 1}if {[passwdok $h ""] == 1} {puthelp "NOTICE $n :You don't have a password set, try to set a password /msg $botnick HELP PASS" return 1}if {[passwdok $h $p] != 1} {puthelp "NOTICE $n : You have supplied a wrong password try again." return 1}if {[validuser $h] &amp;&amp; [passwdok $h $p]} {   chhandle $h $newhandle  sendnote UM honey_bee "changed handle for $h to $newhandle"  puthelp "notice $n :Your handle is successfully changed."  } {   puthelp "notice $n :unable to change your hostmask right now, contact an OP"  } } proc chpass:nick {n u h a} { global botnick set hh [lindex [split $a] 0]  set p [lindex [split $a] 1] if {$a == ""} { puthelp "NOTICE $n :Usage: /msg $botnick chpass &lt;new password&gt;" return 1} if {$p == ""} { puthelp "NOTICE $n :You need to specify password try /msg $botnick chpass &lt;newpass&gt;" return 1} if {[validuser $hh] != 1} { puthelp "NOTICE $n :You are not REGISTERED, try to register yourself /msg $botnick REGISTER &lt;yourpass&gt;" return 1} if {[passwdok $hh ""] == 1} {puthelp "NOTICE $n :You don't have a password set, try to set a password /msg $botnick HELP PASS" return 1} if {[validuser $hh] {   setuser $hh PASS $p   puthelp "notice $n :Your password is successfully changed."  } {   puthelp "notice $n :unable to change your password right now, contact an OP"  } } proc auth:nick {n u h a} { global botnick set p [lindex $a 0]  if {$p == ""} {  puthelp "NOTICE $n :Usage: /msg $botnick auth &lt;password&gt;"  return 0 }  if {[matchattr $h C] == 1} {  puthelp "NOTICE $n : You are already Authenticated."  return 0 }  if {[validuser $h] != 1} { puthelp "NOTICE $n : Your are not REGISTERED yet, try /msg $botnick REGISTER &lt;your password&gt;" return 1}  set ch [passwdok $h ""]  if {$ch == 1} {  puthelp "NOTICE $n :No password set. Type /msg $botnick PASS &lt;password&gt;"  return 0 }  if {[passwdok $h $p] == 0} {  puthelp "NOTICE $n :Incorrect password, login failed!" }  if {[passwdok $h $p] == 1} {  foreach userhost [getuser $h HOSTS] {  if {[string tolower [setHost $u]] == [string tolower $userhost]} {  putlog "host [setHost $u] is already present in $h HOSTS: $userhost"  return 1 } else {  # this will make sure if the current host is added if not lets add it  setuser $hh HOSTS [setHost $u]  chattr $hh +C  puthelp "NOTICE $nick :login successful."  } }proc deauth:nick {n u h a} { global X botnick if {$a == ""} {  puthelp "NOTICE $n : Usage: /msg $botnick deauth &lt;password&gt;"  return 0 } if {[matchattr $h C] == 0} {  puthelp "NOTICE $n : You never authenticated."  return 0 } if {[passwdok $hand $a] == 1} {  chattr $h -C  puthelp "NOTICE $n : DeAuthentication successful" } if {[passwdok $h $a] == 0} {  puthelp "NOTICE $n : DeAuthentication failed" }}proc setHost uhost {  set host [lindex [split $uhost @] 1]  set n [llength [split $host .]]  if {[regexp -all {[A-z]{1,}(\.?)} $host] == $n &amp;&amp; ![regexp {[0-9]} $host]} {   set ehost *!*[string trimleft $uhost ~]  } else if {[string match "*.users.quakenet.org" $host]} {   set ehost *!*[string trimleft $uhost ~]  } {   set ehost [maskhost $uhost]  }  set ehost }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Sun Jan 08, 2006 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-07T10:10:40-04:00</updated>

		<published>2006-01-07T10:10:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59198#p59198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59198#p59198"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59198#p59198"><![CDATA[
thanks alot for your concern I will surely get started for something now. thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Sat Jan 07, 2006 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-06T19:56:39-04:00</updated>

		<published>2006-01-06T19:56:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59165#p59165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59165#p59165"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59165#p59165"><![CDATA[
Don't wait for someone to come and write the whole script. If you just put a little effort in writing 10% of the script, anyone would be more than happy to help you. I'll give you some example on how you can do this.<div class="codebox"><p>Code: </p><pre><code>bind msg - register register:nickbind msg - addhost addhost:nick# register the user.proc register:nick {n u h a} { if {$hand == "*" &amp;&amp; $a != ""} {  adduser $n [setHost $u]  setuser $n PASS [lindex [split $a] 0]  puthelp "notice $n :You've been added with handle $n." } {  puthelp "notice $n :You're already added with handle $h or you didn't specify a password." }}# add a new host.proc addhost:nick {n u h a} { set hh [lindex [split $a] 0] set p [lindex [split $a] 1] if {[validuser $hh] &amp;&amp; [passwdok $hh $p]} {  setuser $hh HOSTS [setHost $u]  puthelp "notice $n :Added you new host to handle $hh." } {  puthelp "notice $n :Invalid handle or wrong password." }}  proc setHost uhost { set host [lindex [split $uhost @] 1] set n [llength [split $host .]] if {[regexp -all {[A-z]{1,}(\.?)} $host] == $n &amp;&amp; ![regexp {[0-9]} $host]} {  set ehost *!*[string trimleft $uhost ~] } else if {[string match "*.users.quakenet.org" $host]} {  set ehost *!*[string trimleft $uhost ~] } {  set ehost [maskhost $uhost] } set ehost}</code></pre></div>Now try and implement the rest. Reading tcl-commands.doc is very helpful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 06, 2006 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-06T16:46:53-04:00</updated>

		<published>2006-01-06T16:46:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59154#p59154</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59154#p59154"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59154#p59154"><![CDATA[
is only sir_fz active on forum?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Fri Jan 06, 2006 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-05T11:17:53-04:00</updated>

		<published>2006-01-05T11:17:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59074#p59074</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59074#p59074"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59074#p59074"><![CDATA[
thanks fz, anymore help will be appreciated and ofcourse I would like to hear from demond aswell<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Thu Jan 05, 2006 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-05T09:33:21-04:00</updated>

		<published>2006-01-05T09:33:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59065#p59065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59065#p59065"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59065#p59065"><![CDATA[
This proc should return the type of host you wish:<div class="codebox"><p>Code: </p><pre><code>proc setHost uhost { set host [lindex [split $uhost @] 1] set n [llength [split $host .]] if {[regexp -all {[A-z]{1,}(\.?)} $host] == $n &amp;&amp; ![regexp {[0-9]} $host]} {  set ehost *!*[string trimleft $uhost ~] } else if {[string match "*.users.quakenet.org" $host]} {  set ehost *!*[string trimleft $uhost ~] } {  set ehost [maskhost $uhost] } set ehost}</code></pre></div>As for the other requests, I bet you can implement something like that yourself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jan 05, 2006 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honeybee]]></name></author>
		<updated>2006-01-05T03:58:50-04:00</updated>

		<published>2006-01-05T03:58:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59053#p59053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59053#p59053"/>
		<title type="html"><![CDATA[userfile management]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59053#p59053"><![CDATA[
hello, <br>I have a channel on quakenet and we offer some services for our users for that i need a script that can add people the script should have following features: <br>when a user msg the bot /msg botnick register pass <br>he/she will be added with hostmask *!*ident@*.ip.com <br>as we know there are following type of hosts <br>1) full alphabetic eg. *!<a href="mailto:honey@i.m.like.honey.com">honey@i.m.like.honey.com</a> <br>2) full numeric eg. *!honey@63.39.45.1 <br>3) numeric and alphabetic both eg. *!<a href="mailto:honey@64.40.39.2-aol.com">honey@64.40.39.2-aol.com</a> etc <br>4) registered quakenet users eg: *!<a href="mailto:honey@honey.users.quakenet.org">honey@honey.users.quakenet.org</a> <br><br>so we need if an user is registered and triggers the command he/she should be added with full host like eg. *!*@blah.users.quakenet.org <br>and if they have a full alphabetic host their full host with ident should be added like *!*<a href="mailto:honey@i.m.like.honey.com">honey@i.m.like.honey.com</a> <br>and if their host is numerical it sholuld be like ident and last mask should be wildcarded <br>*!*honey@64.32.42.* <br>and if they have both numeric and alphabets in their host then it should be like ident and only numeric part should be wildcarded. <br>eg: *!*honey@*.aol.com <br>--- end of the register part --- <br>now if their host get changed, we have to let them add their new host <br>for this they can msg the bot for adding new host. <br>/msg botnick addhost &lt;nick/handle&gt; &lt;password&gt; <br>------------- end of host adding ---- <br>ofcourse their nick will be their handle but if they want to to change it <br>they can use this command <br>/msg botnick chnick &lt;password&gt; <br>again for this we need to have know if the new nick selected is not own by anyone , and if not they can change their nickname else an error will occur <br>----------------- end of the nick change ---- <br>this is a rough touch of what i analysed for managing the userlist if you have a better idea that will be welcomed. i just dont want bot to think people with same ips to be the same thats it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7174">honeybee</a> — Thu Jan 05, 2006 3:58 am</p><hr />
]]></content>
	</entry>
	</feed>
