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

	<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-10-25T23:12:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-25T23:12:01-04:00</updated>

		<published>2003-10-25T23:12:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28963#p28963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28963#p28963"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28963#p28963"><![CDATA[
If you mean do notice the user IF they are on the partyline when .chut is called upon them, then you would make the code:<br><div class="codebox"><p>Code: </p><pre><code>bind dcc n chut dcc:chut proc dcc:chut {hand idx text} {   if {([set chuthand [lindex [split $text] 0]] == "") || (([set onoff [string tolower [lindex [split $text] 1]]] != "on") &amp;&amp; ($onoff != "off"))} {     putdcc $idx "Usage: .chut &lt;handle&gt; &lt;on|off&gt;"     return 0   } elseif {![validuser $chuthand]} {     putdcc $idx "Invalid user ${chuthand}!"     return 0   } elseif {$onoff == "on"} {     if {[matchattr $chuthand M]} {       putdcc $idx "User $chuthand is already muted."       return 0     }     chattr $chuthand +M    if {[set chidx [hand2idx $chuthand]] &gt; -1} {      putdcc $chidx "You have now been muted at request of $hand."    }    putdcc $idx "User $chuthand is now muted."   } elseif {$onoff == "off"} {     if {![matchattr $chuthand M]} {       putdcc "$idx "User $chuthand is not muted."       return 0     }     chattr $chuthand -M     if {[set chidx [hand2idx $chuthand]] &gt; -1} {      putdcc $chidx "You have been unmuted at request of $hand."    }    putdcc $idx "User $chuthand is no longer muted."   }   set res 1  } </code></pre></div>If you mean they get a notice whenever they try to type on the partyline:<br><div class="codebox"><p>Code: </p><pre><code>bind filt - * chatChk proc chatChk {i t} {   if {[catch {getchan $i}]||[string match .* $t]||![matchattr [idx2hand $i] M]} {    set t  } else {    putdcc $i "You are currently muted and not allowed to speak on the partyline."    set res ""  }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 25, 2003 11:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-10-25T21:30:10-04:00</updated>

		<published>2003-10-25T21:30:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28960#p28960</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28960#p28960"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28960#p28960"><![CDATA[
great ! sorry not to have read carefully the last time i have one more simple request , when i do .chut (handle) on i`d like the user to be warn that he is currently under the ".chut " but a putdcc $chuthand doesnt work how can i do that ?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Oct 25, 2003 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-25T20:51:41-04:00</updated>

		<published>2003-10-25T20:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28959#p28959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28959#p28959"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28959#p28959"><![CDATA[
<blockquote class="uncited"><div>great it works but to remove the "chut" what i have to do is .chattr nick -M is it right ? ( cause .-chut nick doesnt work)</div></blockquote>i modified the code to reflect this..<br><br>you do '.chut &lt;handle&gt; on' to mute and '.chut &lt;handle&gt; off' to unmute.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 25, 2003 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-10-25T20:49:44-04:00</updated>

		<published>2003-10-25T20:49:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28958#p28958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28958#p28958"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28958#p28958"><![CDATA[
great it works but to remove the "chut" what i have to do is .chattr nick -M is it right ? ( cause .-chut nick doesnt work)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Oct 25, 2003 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-25T20:50:12-04:00</updated>

		<published>2003-10-25T20:41:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28957#p28957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28957#p28957"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28957#p28957"><![CDATA[
all you need to do is .chattr &lt;handle&gt; +M<br><br>but, yes, you can make an alias for doing this, for use <em class="text-italics">with</em> the previous mentioned code:<br><div class="codebox"><p>Code: </p><pre><code>bind dcc n chut dcc:chutproc dcc:chut {hand idx text} {  if {[set chuthand [lindex [split $text] 0]] == ""} {    putdcc $idx "Usage: .chut &lt;handle&gt;"    return 0  } elseif {![validuser $chuthand]} {    putdcc $idx "Invalid user ${chuthand}!"    return 0  } elseif {[set onoff [string tolower [lindex [split $text] 1]]] == "on"} {    if {[matchattr $chuthand M]} {      putdcc $idx "User $chuthand is already muted."      return 0    }    chattr $chuthand +M    putdcc $idx "User $chuthand is now muted."  } elseif {$onoff == "off"} {    if {![matchattr $chuthand M]} {      putdcc "$idx "User $chuthand is not muted."      return 0    }    chattr $chuthand -M    putdcc $idx "User $chuthand is no longer muted."  }  set res 1  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 25, 2003 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-10-25T19:27:08-04:00</updated>

		<published>2003-10-25T19:27:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28956#p28956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28956#p28956"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28956#p28956"><![CDATA[
so is it possible tu bind this to a command like .chut (nick ) and it will put the +m flag to the (nick) and remove ihis ability to speak on the partyline ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Sat Oct 25, 2003 7:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-10-25T11:53:28-04:00</updated>

		<published>2003-10-25T11:53:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28925#p28925</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28925#p28925"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28925#p28925"><![CDATA[
It would be more practical to make it so chattr'ing a user with a flag would mean that they can't speak on the partyline.. As if you have 300 users, you wouldn't want to chattr each one with +P just so they can speak on the partyline, when all you want to do is mute a few select users...<br>ie.<div class="codebox"><p>Code: </p><pre><code>bind filt - * chatChk proc chatChk {i t} {   if {[catch {getchan $i}]||[string match .* $t]||![matchattr [idx2hand $i] M]} {set t} } </code></pre></div>So this would mean +M users would not be able to speak on the partyline.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Oct 25, 2003 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-10-25T11:03:06-04:00</updated>

		<published>2003-10-25T11:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28924#p28924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28924#p28924"/>
		<title type="html"><![CDATA[Re: i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28924#p28924"><![CDATA[
This will make the user defined flag P required to speak on the partyline (or any other botnet channel):<div class="codebox"><p>Code: </p><pre><code>bind filt - * chatChkproc chatChk {i t} {  if {[catch {getchan $i}]||[string match .* $t]||[matchattr [idx2hand $i] P]} {set t}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sat Oct 25, 2003 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-10-25T09:46:47-04:00</updated>

		<published>2003-10-25T09:46:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28923#p28923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28923#p28923"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28923#p28923"><![CDATA[
Use the bind filt and a certain flag (in this case M) like this:<div class="codebox"><p>Code: </p><pre><code>bind filt - ".status *" dcc:allowproc dcc:allow {idx args} {   set usernick [idx2hand $idx]  if {[lindex $args 1] == ""} {     set icmd [lindex $args 0]    set args "$icmd "  }  if {![matchattr $usernick M]} {    putdcc $idx "What? You need '.help'"    } else {    return $args  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 25, 2003 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[duofruo]]></name></author>
		<updated>2003-10-25T02:54:49-04:00</updated>

		<published>2003-10-25T02:54:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28904#p28904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28904#p28904"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28904#p28904"><![CDATA[
I think u may remove the +p ability of that person<br><br> It`s an idea i dont know for user, i am new in eggdrop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4023">duofruo</a> — Sat Oct 25, 2003 2:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-10-24T23:31:37-04:00</updated>

		<published>2003-10-24T23:31:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28901#p28901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28901#p28901"/>
		<title type="html"><![CDATA[i wonder if ..........]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28901#p28901"><![CDATA[
Hi <br><br>i wonder if it is possible to do a command like .chut (handle)  and it cuts the ability for this person to say something in partyline until i type .chut (handle ) off  ??<br><br>thanks for all advice that may be handy<br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Fri Oct 24, 2003 11:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
