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

	<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>2003-02-16T02:20:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-16T02:20:32-04:00</updated>

		<published>2003-02-16T02:20:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16649#p16649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16649#p16649"/>
		<title type="html"><![CDATA[Suspend user access?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16649#p16649"><![CDATA[
Ask yourself this... could you have just added a matchattr to each proc in the 30 minutes you spent looking? hehe<br><br>But this is sort of a neat way to do it if you use "hand" as the handle variable:<br><div class="codebox"><p>Code: </p><pre><code>proc check_for_s {} {  upvar hand hand  if {[matchattr $hand +S]} {    return -code return 0  }  return 0}proc blahproc {nick uhost hand chan text} {  # just one command, no "if", no "return", no arguments  check_for_s  ...   rest of proc  ...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun Feb 16, 2003 2:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[scr0llwheel]]></name></author>
		<updated>2003-02-15T21:05:43-04:00</updated>

		<published>2003-02-15T21:05:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16645#p16645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16645#p16645"/>
		<title type="html"><![CDATA[Suspend user access?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16645#p16645"><![CDATA[
I have searched the forums for the last 30 minutes but haven't found what I'm looking for so here goes...<br><br>Currently, users have access to specific commands on the bot (that I coded) if they have the C flag. Now, I would like to make a command where I (the owner) can suspend their access <span style="text-decoration:underline">without</span> removing the C flag. I was thinking of adding an S flag for their handle but that would get tedious to add a check if they have the S flag for every proc (I could do it but I'm looking for a shorter way <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">).<br><br>So I was wondering if there is a way to use bind so it only processes if the S flag is NOT on the user's handle? Something like<div class="codebox"><p>Code: </p><pre><code>bind pub +C-S !blah blahproc</code></pre></div>However, that (obviously) doesn't work because the - is used for any user and the + just screws it up <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">.<br><br>Is there *any* way to do it with binds? If not, what would be the shortest way to do it otherwise?<br><br>Thanks,<br>scr0llwheel<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2465">scr0llwheel</a> — Sat Feb 15, 2003 9:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
