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

	<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>2021-12-29T07:31:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-29T07:31:42-04:00</updated>

		<published>2021-12-29T07:31:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110678#p110678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110678#p110678"/>
		<title type="html"><![CDATA[public command for adding users to  access list of eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110678#p110678"><![CDATA[
from the looks of it when doing whois on the user it seems to add channels seperate so it seems to work as we wanted to<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Dec 29, 2021 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-29T05:55:42-04:00</updated>

		<published>2021-12-29T05:55:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110677#p110677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110677#p110677"/>
		<title type="html"><![CDATA[public command for adding users to  access list of eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110677#p110677"><![CDATA[
I was wondering lets say we want to add a nick in 2 or more channels is that possible or can only 1 channels be used<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Dec 29, 2021 5:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-28T21:21:33-04:00</updated>

		<published>2021-12-28T21:21:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110676#p110676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110676#p110676"/>
		<title type="html"><![CDATA[public command for adding users to  access list of eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110676#p110676"><![CDATA[
Thanks willyw that helped a lot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Dec 28, 2021 9:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-28T18:25:09-04:00</updated>

		<published>2021-12-28T18:25:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110675#p110675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110675#p110675"/>
		<title type="html"><![CDATA[Re: public command for adding users to  access list of eggdr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110675#p110675"><![CDATA[
I haven't run your code.   However, I noticed a couple things that you might want to look into.<br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>...proc pub_adduser {nick host handle channel testes} {set who [lindex $testes 0]...</code></pre></div></div></blockquote>lindex works on lists.   $testes is a text string, not a list.   So, it should be converted.<br>Thus:<div class="codebox"><p>Code: </p><pre><code>set who [lindex [split $testes] 0 ]</code></pre></div>Next:<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>setuser chanops HOSTS $what</code></pre></div></div></blockquote>I don't think that you meant "chanops" there.  I think you meant $who.<br><br>But before you use the setuser command on a username, I think you need to actually add the username.<br>See:<br><a href="https://docs.eggheads.org/mainDocs/tcl-commands.html#adduser-handle-hostmask" class="postlink">https://docs.eggheads.org/mainDocs/tcl- ... e-hostmask</a><br><br>Then, to modify a user's flags,  see:<br><a href="https://docs.eggheads.org/mainDocs/tcl-commands.html#chattr-handle-changes-channel" class="postlink">https://docs.eggheads.org/mainDocs/tcl- ... es-channel</a><br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Dec 28, 2021 6:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-28T18:15:45-04:00</updated>

		<published>2021-12-28T18:15:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110674#p110674</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110674#p110674"/>
		<title type="html"><![CDATA[Re: public command for adding users to  access list of eggdr]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110674#p110674"><![CDATA[
<blockquote class="uncited"><div> <br>...<br><br>in partyline i did :<blockquote class="uncited"><div>   .+user chanops<br>   .chattr chanops -|+o</div></blockquote>but it seems to give flag o for all channels where the bot sits<br>not sure why, as we wanted to grant per channel access</div></blockquote>Do:    .help chattr     in the partyline.<br>See:<blockquote class="uncited"><div>    You can also change the flags for Usagi on a specific channel by supplying<br>    the channel after the attributes:<br>   .chattr Usagi -m+dk-o #blah</div></blockquote>in the info that is returned.   There's more there to read, too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Dec 28, 2021 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-28T13:49:05-04:00</updated>

		<published>2021-12-28T13:49:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110673#p110673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110673#p110673"/>
		<title type="html"><![CDATA[public command for adding users to  access list of eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110673#p110673"><![CDATA[
greetz im using this small tcl to add users in access list with o flag<br> i was wondering how we could use per channel access meaning if we add them in that channel they should have o flag for that channel only and not  global<br><br><br>in partyline i did :<blockquote class="uncited"><div>   .+user chanops<br>   .chattr chanops -|+o</div></blockquote>but it seems to give flag o for all channels where the bot sits<br>not sure why, as we wanted to grant per channel access<br><br><br><br><br><br><div class="codebox"><p>Code: </p><pre><code>bind pub m !adduser pub_adduser  proc pub_adduser {nick host handle channel testes} {set who [lindex $testes 0]if {[set chost [getchanhost $who $channel]] ne ""} {switch -glob -- $chost {{*.irccloud.com} - {*.mibbit.com} - {*.kiwiirc.com} - {*2001*67c*2f08*} - {*192.184.8.*} - {*192.184.9.*} - {*192.184.9.*} - {*192.184.10.*} {                         set accessmask "[string trimleft [lindex [split $chost @] 0] "~"]"       set what "*!*[string tolower [string range $accessmask 1 end]]@*"}{default} {                           set what [maskhost $who!$chost 5]}}} if {![onchan $who $channel]} { putserv "NOTICE $nick :$who isn't on $channel." return 1 } if {$who == ""} { putserv "NOTICE $nick :Usage: .adduser &lt;User To Add.&gt;" return 1 } setuser chanops HOSTS $what putserv "NOTICE $nick :Added $who to User-Database." return 1}   bind pub m !deluser pub_deluser proc pub_deluser {nick host handle channel testes} {set who [lindex $testes 0]if {[set chost [getchanhost $who $channel]] ne ""} {switch -glob -- $chost {{*.irccloud.com} - {*.mibbit.com} - {*.kiwiirc.com} - {*2001*67c*2f08*} - {*192.184.8.*} - {*192.184.9.*} - {*192.184.9.*} - {*192.184.10.*} {                         set bmask "[string trimleft [lindex [split $chost @] 0] "~"]"       set usho *!*[string tolower [string range $bmask 1 end]]@*                      }{default} {                           set usho [maskhost $who!$chost 5]}}}if {$who == ""} {putserv "NOTICE $nick :Usage: .deluser &lt;User to delete.&gt;"return 1}delhost chanops $ushoputlog "$nick made me delete $who from userlist."putserv "NOTICE $nick :as u wish $nick i deleted $who from userlist."return 1}    </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Dec 28, 2021 1:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
