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

	<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-01-28T13:46:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[HecKel]]></name></author>
		<updated>2005-01-28T13:46:39-04:00</updated>

		<published>2005-01-28T13:46:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45903#p45903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45903#p45903"/>
		<title type="html"><![CDATA[Problem in TCL to add flags to an user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45903#p45903"><![CDATA[
anybody can help me on this question?<br><br>my egg can't add users to channel access list, the egg has access to add anyuser, but only add user to his db...<br><br>tnks, HecKel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5906">HecKel</a> — Fri Jan 28, 2005 1:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[HecKel]]></name></author>
		<updated>2005-01-20T17:57:35-04:00</updated>

		<published>2005-01-20T17:57:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45640#p45640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45640#p45640"/>
		<title type="html"><![CDATA[Problem in TCL to add flags to an user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45640#p45640"><![CDATA[
yes i only add users by nick because the egg is on a private channel, and the users usualy change masks...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5906">HecKel</a> — Thu Jan 20, 2005 5:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-01-20T13:15:54-04:00</updated>

		<published>2005-01-20T13:15:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45624#p45624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45624#p45624"/>
		<title type="html"><![CDATA[Re: Problem in TCL to add flags to an user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45624#p45624"><![CDATA[
<blockquote class="uncited"><div>sometimes my egg add the correct flags, and sometimes he only add the default flags..., aswell the egg adds the user to the channel access list, and sometimes he did's this..., I can't find the problem..., there is the code:<br><div class="codebox"><p>Code: </p><pre><code>set newhost "$newop!*@*"</code></pre></div></div></blockquote>This set here is not exactly secure. You are just adding users by nick?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Jan 20, 2005 1:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[HecKel]]></name></author>
		<updated>2005-01-20T13:01:36-04:00</updated>

		<published>2005-01-20T13:01:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45622#p45622</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45622#p45622"/>
		<title type="html"><![CDATA[Problem in TCL to add flags to an user]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45622#p45622"><![CDATA[
sometimes my egg add the correct flags, and sometimes he only add the default flags..., aswell the egg adds the user to the channel access list, and sometimes he did's this..., I can't find the problem..., there is the code:<br><div class="codebox"><p>Code: </p><pre><code>proc wellcome {by to where cat} {  putserv "NOTICE $by :$to is the $cat on $where"  putserv "NOTICE $to :Wellcome $to!"  putserv "NOTICE $to :$by adding you as $cat no $where."  pushmode $where +o $to}bind pub X|X .addnew add_newproc add_new {n u h c a} {  global botnick newflags  if {[lindex $a 0] == ""} {putserv "NOTICE $n :Command: .addnew &lt;nickname&gt;"      return 1  }   set newop [lindex $a 0]  if {[onchan $newop $c] == 0} {putserv "NOTICE $n :$newop is not in $c!"      return 1  }  set exflags "+ofCX"    set newhost "$newop!*@*"  if {[validuser $newop] == 1} {     if {[lsearch [getuser $newop hosts] $newhost] == "-1"} {       putserv "NOTICE $n :$newop is not in my DB. Adding flags and hostmask."       chattr $newop |+$exflags $c       setuser $newop hosts $newhost       putserv "CHANSERV ACCESS $c ADD $newop 5"       wellcome $n $newop $c "new op"       return 1     } {       putserv "NOTICE $n :$newop is alread in my DB. Changing flags."       chattr $newop |+$exflags $c       putserv "CHANSERV ACCESS $c ADD $newop 5"       wellcome $n $newop $c new op"     return 1 }  }    if {[finduser $newhost] != "*"} { putserv "NOTICE $n :$newop\[$newhost\] is now: [finduser $newhost]" return 1  }   adduser $newop $newhost    if {[chattr $newop |+$exflags $c] == "*"} {  putserv "NOTICE $n :Error!"return 1  }  wellcome $n $newop $c "new op"  save}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5906">HecKel</a> — Thu Jan 20, 2005 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
