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

	<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-06-03T09:46:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2005-06-03T09:46:23-04:00</updated>

		<published>2005-06-03T09:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50146#p50146</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50146#p50146"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50146#p50146"><![CDATA[
you could just have a script rebind everything to appropriate flags. wouldnt get a msg that way though.<br><br>here is what i would do<div class="codebox"><p>Code: </p><pre><code>foreach b [binds pub] {  if {[string index [join [lindex [split $b] 2]] 0] == "!"} {    set a [lindex [split $b] end] ; set c [info args $a]    set d "if {!\[matchattr \$[lindex [info args $a] 2] f|f \$[lindex [info args $a] 3]]} { puthelp \"PRIVMSG \$[lindex [info args $a] 0] :your msg here\" ; return } "    append d [info body $a]    proc $a $c $d  } }unset a b c d</code></pre></div>now at the bottom of your conf you'd do<blockquote class="uncited"><div>source pubscript1.tcl<br>source pubscript2.tcl<br>source <strong class="text-strong">thisscript.tcl</strong><br>source <em class="text-italics">unaffected.tcl</em></div></blockquote>only been through a brief test so bitch out loud if it breaks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br><br>edit: change the flags and msg to whatever's appropriate<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Jun 03, 2005 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2005-06-03T01:14:30-04:00</updated>

		<published>2005-06-03T01:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50130#p50130</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50130#p50130"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50130#p50130"><![CDATA[
there basically isn't<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Jun 03, 2005 1:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w0lfstar]]></name></author>
		<updated>2005-06-02T04:26:03-04:00</updated>

		<published>2005-06-02T04:26:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50100#p50100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50100#p50100"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50100#p50100"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {![matchattr $hand f|f $chan]} {putquick "notice $nick :I don't like you.";return}</code></pre></div></div></blockquote>that is similiar with what i use right now. i just was thinking of an easier way without adding a check to each proc. thanks anyway =)<br><br>wolfy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6248">w0lfstar</a> — Thu Jun 02, 2005 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-06-01T21:13:10-04:00</updated>

		<published>2005-06-01T21:13:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50095#p50095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50095#p50095"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50095#p50095"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![matchattr $hand f|f $chan]} {putquick "notice $nick :I don't like you.";return}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jun 01, 2005 9:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w0lfstar]]></name></author>
		<updated>2005-06-01T13:28:24-04:00</updated>

		<published>2005-06-01T13:28:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50072#p50072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50072#p50072"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50072#p50072"><![CDATA[
hm i meant it like this: user is known by the bot with a working hostmask but user2 is not.<br><br>so when user trys any !&lt;cmd&gt; like:<br><br>!showsports, !showtv etc<br><br>only user can enter *any* ! commands. user2 will always get a error msg like: "you are not allowed to use any ! commands if you arent in my userdatabase with a working hostmask"<br><br>thanks =)<br><br>wolfy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6248">w0lfstar</a> — Wed Jun 01, 2005 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-05-31T05:52:51-04:00</updated>

		<published>2005-05-31T05:52:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50017#p50017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50017#p50017"/>
		<title type="html"><![CDATA[Re: restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50017#p50017"><![CDATA[
<blockquote class="uncited"><div>hello, can someone let me know if its possible to have *all* commands with ! to make only masters to use them in a global way? i have added a validuser check for all procs righr now, but i thought this could be set globally? any help is wanted =)<br><br>ps: maybe the global error msg can be set to:<br><br>you have to ident yourself to use any command.<br><br>wolfy</div></blockquote>I wrote such a script a month ago, here  <a href="http://hub.nexushells.net/~Fz/commands2.8.tar.gz" class="postlink">give it a try</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 31, 2005 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-31T04:14:23-04:00</updated>

		<published>2005-05-31T04:14:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50008#p50008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50008#p50008"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50008#p50008"><![CDATA[
Yeah you can,<br><div class="codebox"><p>Code: </p><pre><code>bind pub m !command my:proc</code></pre></div>OR<br><div class="codebox"><p>Code: </p><pre><code>bind pub m "*" my:procproc my:proc {nick uhost hand chan text} { if {([string length [lindex $text 0]] &gt; 0) &amp;&amp; [string equal "!" [lindex $text 0]]} { #your stuff here }}</code></pre></div>You can also check like this, within a procedure:<br><div class="codebox"><p>Code: </p><pre><code>if {[matchattr $hand m|-]} {#orif {[matchattr $hand m]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue May 31, 2005 4:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[w0lfstar]]></name></author>
		<updated>2005-05-30T21:48:26-04:00</updated>

		<published>2005-05-30T21:48:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50006#p50006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50006#p50006"/>
		<title type="html"><![CDATA[restrict all ! commands to master]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50006#p50006"><![CDATA[
hello, can someone let me know if its possible to have *all* commands with ! to make only masters to use them in a global way? i have added a validuser check for all procs righr now, but i thought this could be set globally? any help is wanted =)<br><br>ps: maybe the global error msg can be set to:<br><br>you have to ident yourself to use any command.<br><br>wolfy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6248">w0lfstar</a> — Mon May 30, 2005 9:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
