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

	<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-03-17T22:39:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2008-03-17T22:39:35-04:00</updated>

		<published>2008-03-17T22:39:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81875#p81875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81875#p81875"/>
		<title type="html"><![CDATA[Two scripts brought together - .chattr + .adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81875#p81875"><![CDATA[
Have you tried to contact the author on DALnet or EFnet (as per details in the header)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Mar 17, 2008 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Puck]]></name></author>
		<updated>2008-03-17T14:41:30-04:00</updated>

		<published>2008-03-17T14:41:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81866#p81866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81866#p81866"/>
		<title type="html"><![CDATA[Two scripts brought together - .chattr + .adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81866#p81866"><![CDATA[
Hi everyone.<br><br>Once again i need help from you guys too make a simple command out of two, that is, if i type .chattr nickname +flags the eggdrop adds the user to the userlist with the host *!*@vhost.domain.com and adds too him the +flags too the channel userlist. After these two commands are performed the eggdrop messages the nickname that has gained access that he has been succesfully added.<br><br>Here are the two scripts that i found, i hope it helps somehow, it`s from botcontrol3.2.tcl by Prince_of_the_net, so these codes arent mine at all.<br><br>Adduser:<div class="codebox"><p>Code: </p><pre><code>proc bctrl:add_user {nick uhost hand chan text} {    global logo botnick    set person [lindex [split $text] 0]    if {$person == ""} {puthelp "NOTICE $nick :You did not tell me the nick to be added :-(. The correct syntax is !adduser &lt;nick_to_be_added&gt;  $logo"return 0    }    set per_ip [getchanhost $person]    set per_host [maskhost $person!$per_ip]    set host [lindex [split $text] 1]    if {$host == ""} {set host $per_host     }    set kadd [adduser $person $host]    if {$kadd == 1} { putserv "NOTICE $nick :Successfully added $person with host $host  $logo" putserv "NOTICE $person :You were added to my user list by $nick with host $host.Please set up your password with /msg $botnick pass &lt;ur_chosen_password&gt;  $logo"    } { putserv "NOTICE $nick :Error, could not add user $person, he already exists!!  $logo"    }}</code></pre></div>Chattr:<div class="codebox"><p>Code: </p><pre><code>proc bctrl:chatt_r {nick uhost hand chan text} {    global logo    set person [nick2hand [lindex [split $text] 0]]    if {$person == ""} {puthelp "NOTICE $nick :You did not tell me the nick for whom the user flags are to be changed :-(. The correct syntax is !chattr &lt;nick_to_be_modified&gt; &lt;flags&gt; \[channel\]"puthelp "NOTICE $nick :The channel is optional.  $logo"return 0    }    set change [lindex [split $text] 1]    set channel [lindex [split $text] 2]    if {$channel == ""} {set chattz [chattr $person $change]putserv "NOTICE $nick :The global flags for $person are now: $chattz"putlog "Changing global"putserv "NOTICE $person :Your global flags are now: $chattz"    } {set chattz [chattr $person |$change $channel]putserv "NOTICE $nick :The global flags, and channel flags in the format of global|channel for $person are now: $chattz  $logo"    }}</code></pre></div>If you need the whole code it`s <a href="http://szeretlek.org/TCL/botcontrol3.2.tcl" class="postlink">Here </a><br><br>P.S.: I removed the "$logo" from everywhere since it gives an error that the $logo variable is not found.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9764">Puck</a> — Mon Mar 17, 2008 2:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
