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

	<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>2011-12-15T09:00:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sedition]]></name></author>
		<updated>2011-12-15T09:00:18-04:00</updated>

		<published>2011-12-15T09:00:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98394#p98394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98394#p98394"/>
		<title type="html"><![CDATA[tcl of access temporary control by means of host storm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98394#p98394"><![CDATA[
good to all I am new in the web, I would like that they help me in this tcl<br>like creating a bridge in which the eggdrop by means of the command / msg bot auth &lt;pass&gt;<br>that is to say that when I should identify so / msg bot auth &lt;pass&gt; in bot answers me<br>recognized password and at the same time I joined in temporary form like proprietor<br>as for example:. +host Sedition! * *<br><br>he believes and add a host in the file.user for example:. +host Sedition! * *<br><br>nota. - the aggregate user is not a real proprietor the idea is that only he adds it in temporary form<br>that the method of adding host is only temporary, that is to say that only lasts 24 hours<br>and later the same eggdrop removes it that is to say the aggregate host removes example<br>+host Sedition! * *<br>save<br>utimer 216000-host Sedition! * *<div class="codebox"><p>Code: </p><pre><code># To authenticate: /msg bot auth &lt;pass&gt;#### tcl based on the Opposing code############# code tcl ###############bind msg auth fz:mauth## Set Commands script logo:set fzcom(logo) "\[\002Shrider\002\]"proc fz:mauth {nick uhost hand arg} {global botnick fzcom host save+host mdrt!*@*saveutimer 216000 -host Sedition!*@*return 0}if {[set pw [lindex [split $arg] 0]] == ""} {puthelp "NOTICE $nick :$fzcom(logo): SYNTAX: /msg $botnick auth &lt;password&gt;"return 0}if {[passwdok $hand ""]} {puthelp "NOTICE $nick :$fzcom(logo): You haven't set your password. Type: \[/msg $botnick pass &lt;password&gt;\] to set-up Your password."return 0}if {[matchattr $hand Q]} {puthelp "NOTICE $nick :$fzcom(logo): You have authenticate before, no need another authentication."return 0}if {![passwdok $hand $pw]} {puthelp "NOTICE $nick :$fzcom(logo): Authentication \002rejected\002!!, check out Your password."return 0}chattr $hand +Qputhelp "NOTICE $nick :$fzcom(logo): Authentication \002accepted\002!!, thank you for Your authentication."putcmdlog "$fzcom(logo): &lt;&lt;$nick&gt;&gt; !$hand! Authentication."return 0}bind msg pass fz:mpassproc fz:mpass {nick uhost hand arg} {global botnick fzcomif {[set pw [lindex [split $arg] 0]] == ""} {puthelp "NOTICE $nick :$fzcom(logo): SYNTAX: /msg $botnick pass &lt;password&gt;"return 0}if {![passwdok $hand ""]} {puthelp "NOTICE $nick :$fzcom(logo): Your password has been set before, you don't need to set it again. Simply type: \[/msg $botnick auth &lt;password&gt;\] to authenticate yourself."return 0}setuser $hand PASS $pwputhelp "NOTICE $nick :$fzcom(logo): Your password is now set to: \002$pw\002, remember your password for future use."putcmdlog "$fzcom(logo): &lt;&lt;$nick&gt;&gt; !$hand! Set Password."return 0}proc cmdbtype [list name [list type 3]] {if {[scan $name {%[^!]!%[^@]@%s} nick user host]!=3} {error "Usage: cmdbtype &lt;nick!user@host&gt; \[type\]"}if [string match {[3489]} $type] {if [string match {*[0-9]} $host] {set host [join [lrange [split $host .] 0 2] .].*} elseif {[string match *.*.* $host]} {set host *.[join [lrange [split $host .] end-1 end] .]}}if [string match {[1368]} $type] {set user *[string trimleft $user ~]} elseif {[string match {[2479]} $type]} {set user *}if [string match {[01234]} $type] {set nick *}set name $nick!$user@$host}proc wordwrap {str {len 100} {splitChr { }}} {set out [set cur {}]; set i 0foreach word [split [set str][unset str] $splitChr] {if {[incr i [string len $word]]&gt;$len} {lappend out [join $cur $splitChr]set cur [list $word]set i [string len $word]} {lappend cur $word}incr i}lappend out [join $cur $splitChr]}</code></pre></div>good I wait for all that he learns more on tcl thanks for shaping a solid group of help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11854">Sedition</a> — Thu Dec 15, 2011 9:00 am</p><hr />
]]></content>
	</entry>
	</feed>
