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

	<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>2003-02-20T13:08:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-02-20T13:08:56-04:00</updated>

		<published>2003-02-20T13:08:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16822#p16822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16822#p16822"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16822#p16822"><![CDATA[
<blockquote class="uncited"><div>Well, from "The problem is that if the user is already in the userfile i have to say that he is already is an autovoice of an op or whatever." I have understood what I've typer earlier. Then if this not what you need the what you want? Be more precisly..</div></blockquote>Nevermind i already got my answer from somebody else.<br>Thanks for the help anyway<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Feb 20, 2003 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-20T12:50:18-04:00</updated>

		<published>2003-02-20T12:50:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16818#p16818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16818#p16818"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16818#p16818"><![CDATA[
Well, from "The problem is that if the user is already in the userfile i have to say that he is already is an autovoice of an op or whatever." I have understood what I've typer earlier. Then if this not what you need the what you want? Be more precisly..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 20, 2003 12:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-02-20T12:31:47-04:00</updated>

		<published>2003-02-20T12:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16817#p16817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16817#p16817"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16817#p16817"><![CDATA[
<blockquote class="uncited"><div>Then use something like this:<br><div class="codebox"><p>Code: </p><pre><code>if {[validuser [nick2hand $person]]} {  puthelp "NOTICE $nick :Sorry, but $person is already an known user. It's user is [nick2hand $person]"return }</code></pre></div></div></blockquote>yeah i already had something like that but that was not wat i intended.<br>It had to say that it's already in the bot as an channel op of channelvoice or whatever the flags he already has<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Feb 20, 2003 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-20T12:15:49-04:00</updated>

		<published>2003-02-20T12:15:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16814#p16814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16814#p16814"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16814#p16814"><![CDATA[
Then use something like this:<br><div class="codebox"><p>Code: </p><pre><code>if {[validuser [nick2hand $person]]} {  puthelp "NOTICE $nick :Sorry, but $person is already an known user. It's user is [nick2hand $person]"return }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Feb 20, 2003 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2003-02-20T11:50:27-04:00</updated>

		<published>2003-02-20T11:50:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16813#p16813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16813#p16813"/>
		<title type="html"><![CDATA[Need some help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16813#p16813"><![CDATA[
<blockquote class="uncited"><div> proc pub_addavoice  {nick uhost hand channel text} {<br>   global botnick<br>    set person [lindex [split $text] 0]<br>    if {$person == ""} {<br>    puthelp "NOTICE $nick : You must give a nick to add. Use !addavoice &lt;nick_to_be_added&gt;"<br>        return 0<br>    }<br>        set per_ip [getchanhost $person]<br>    set per_host [maskhost $person!$per_ip]<br>    set host [lindex [split $text] 1]<br>    if {$host == ""} {<br>        set host $per_host<br>    }<br>    set kadd [adduser $person $host]<br>    if {$kadd == 1} {<br>        chattr $person +h|+gv $channel<br>        pushmode $channel +v $person<br>        putserv "NOTICE $nick :Successfully added $person as an autovoice with host $host "<br>        putserv "NOTICE $person :You were added to my user list by $nick as an autovoicesubop with host $host.Please set up y$<br>    } (<br><br> if {$hand != "*"} {<br>    if {[matchattr $hand -|g $channel]} {<br>    putserv "NOTICE $nick :The user is already in the bot as an autovoice .."<br>    return 0<br>    }<br>    if {[matchattr $hand -|o $channel]} {<br>    putserv "NOTICE $nick :This user is already in the bots as an channelops .."<br>    return 0<br>    }<br>   }<br>    }</div></blockquote>The adding of the user pretty mutch works.<br>The problem is that if the user is already in the userfile i have to say that he is already is an autovoice of an op or whatever. That doesn't work.<br><br>Can anybody help me please ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Thu Feb 20, 2003 11:50 am</p><hr />
]]></content>
	</entry>
	</feed>
