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

	<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>2012-03-24T13:55:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2012-03-24T13:55:07-04:00</updated>

		<published>2012-03-24T13:55:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99111#p99111</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99111#p99111"/>
		<title type="html"><![CDATA[Re: Auto-Modifier public commands and channel specification.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99111#p99111"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>  chattr $handle +ao $chan</code></pre></div></div></blockquote>Try:<div class="codebox"><p>Code: </p><pre><code>chattr $handle -|+ao $chan</code></pre></div>Also, please note -<br>This is not good:<div class="codebox"><p>Code: </p><pre><code>set handle [lindex $arg 0] </code></pre></div>lindex is for working on a tcl list, and the value in your variable is not a list.    You are "getting away with it".   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Try:<div class="codebox"><p>Code: </p><pre><code>set handle [lindex [split $arg] 0] </code></pre></div>Reference:<br><a href="http://www.peterre.info/characters.html" class="postlink">http://www.peterre.info/characters.html</a><br><br>(worth bookmarking)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Mar 24, 2012 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rewt]]></name></author>
		<updated>2012-03-24T12:52:40-04:00</updated>

		<published>2012-03-24T12:52:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99110#p99110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99110#p99110"/>
		<title type="html"><![CDATA[Auto-Modifier public commands and channel specification.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99110#p99110"><![CDATA[
I have been attempting to set up Auto-Op, Auto-Halfop, Auto-Voice commands and after scrounging through the archive and a little modification I am using the following: <br><div class="codebox"><p>Code: </p><pre><code>bind pub m|m .ao autooppubproc autooppub {nick uhost handle chan arg} { set handle [lindex $arg 0] set hostmask [lindex $arg 1] if {[validuser $handle]} {  chattr $handle +ao  puthelp "privmsg $chan :$nick: User has been auto-op'd."  return 0 } if {![validuser $handle]} {  puthelp "privmsg $chan :$nick: User does not exisit in my database."  return 0 }}</code></pre></div>Which has worked great for modifying user attributes across the board, I am having trouble limiting them to a specific channel however. For example, when I add the $chan var after the flags I would expect it to assign those flags to the channel pulled from the public command, however it just adds it to the users global rights. <div class="codebox"><p>Code: </p><pre><code>  chattr $handle +ao $chan</code></pre></div>I even tried hard-coding a channel name and got the same result. I am a little new to tcl scripting, if someone could help correct my syntax or explain what I am doing wrong, I would greatly appreciate it. <br><br>Basically, I just don't want the auto-voiced/halfop'd/op'd users to have that access on all my bots chans <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">. Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11951">rewt</a> — Sat Mar 24, 2012 12:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
