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

	<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-04-05T20:53:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MasterEgg]]></name></author>
		<updated>2011-04-05T20:53:37-04:00</updated>

		<published>2011-04-05T20:53:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96602#p96602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96602#p96602"/>
		<title type="html"><![CDATA[prohibit some commands to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96602#p96602"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11632">MasterEgg</a> — Tue Apr 05, 2011 8:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-04-05T10:05:13-04:00</updated>

		<published>2011-04-05T10:05:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96600#p96600</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96600#p96600"/>
		<title type="html"><![CDATA[prohibit some commands to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96600#p96600"><![CDATA[
You got 3 options:<br><br>1. don't give partyline access to people you don't trust;<br>2. use 'bind filt' to filter out the commands you wish;<br>3. rebind the commands you wish to prohibit to another flag of your choice;<br><br>Here's an example on using the filt to permit the command only if it's set as owner in the configuration file.<div class="codebox"><p>Code: </p><pre><code>bind filt - ".binds *" dcc:allowproc dcc:allow {idx args} {  set handle [idx2hand $idx]  if {[lsearch -nocase $::owner $handle] == -1} {    putdcc $idx "Permission denied."    } else {    return $args  }}</code></pre></div>Haven't tested this but as far as I see this may have a major flaw (I haven't tested anything) as I seem to trigger '.binds' just by issuing '.bin' from party line.<br><br>@willyw : Apart the '.binds' ALL are already bound for global owner only:<blockquote class="uncited"><div>  TYPE FLAGS    COMMAND              HITS BINDING (TCL)<br>  dcc  n|-      unloadmod               0 *dcc:unloadmod<br>  dcc  n|-      loadmod                 0 *dcc:loadmod<br>  dcc  m|-      binds                   9 *dcc:binds<br>  dcc  n|-      modules                 0 *dcc:modules<br>  dcc  n|-      simul                   0 *dcc:simul<br>  dcc  n|-      die                     0 *dcc:die</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 05, 2011 10:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-04-05T09:28:47-04:00</updated>

		<published>2011-04-05T09:28:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96598#p96598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96598#p96598"/>
		<title type="html"><![CDATA[Re: prohibit some commands to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96598#p96598"><![CDATA[
<blockquote class="uncited"><div>Hello is in the title, I want to prohibit some commands  all users except me of course, such as binds, modules, simul, die, loadmod unloadmod thank you for your help</div></blockquote>Log into your bot.<br>Issue these commands,  and examine each result:<br>.binds *binds* all<br>.binds *modules* all<br>.binds *simul* all<br>.binds *die* all<br>.binds *loadmod* all<br>.binds *unloadmod* all<br><br>With a quick check on one of my bots, I find that all the above, execpt the<br>.binds<br>command, are already limited to only those users with +n.<br><br>If you wish to change the flags,  at the end of your eggdrop.conf you could do something like this:<div class="codebox"><p>Code: </p><pre><code>unbind dcc  m|- binds *dcc:bindsbind dcc n|- binds *dcc:binds</code></pre></div>I suppose that if you truly wanted to limit a command's use to ONLY you, and no other owner that has +n, then you could change the flag to a custom flag, and then give yourself that flag.<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 Apr 05, 2011 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MasterEgg]]></name></author>
		<updated>2011-04-05T08:53:06-04:00</updated>

		<published>2011-04-05T08:53:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96597#p96597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96597#p96597"/>
		<title type="html"><![CDATA[prohibit some commands to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96597#p96597"><![CDATA[
Hello is in the title, I want to prohibit some commands  all users except me of course, such as binds, modules, simul, die, loadmod unloadmod thank you for your help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11632">MasterEgg</a> — Tue Apr 05, 2011 8:53 am</p><hr />
]]></content>
	</entry>
	</feed>
