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

	<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>2020-08-01T13:35:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-08-01T13:35:56-04:00</updated>

		<published>2020-08-01T13:35:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108849#p108849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108849#p108849"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108849#p108849"><![CDATA[
tnx crazycat i already figured that part but not sure  how to use it with the  code i posted<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Aug 01, 2020 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-08-01T11:47:12-04:00</updated>

		<published>2020-08-01T11:47:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108847#p108847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108847#p108847"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108847#p108847"><![CDATA[
Read what caesar said and your proc:<div class="codebox"><p>Code: </p><pre><code>proc massmode {chan mode arg} {  scan $mode {%[-+]%[bov]} p m  set j [llength $arg]  set k [expr {${::modes-per-line}-1}]  set out "";  for {set i 0} {$i&lt;$j} {incr i} {    set args [lrange $arg $i [incr i $k]]    append out "MODE $chan $p[string repeat $m [llength $args]] [join $args]\n"   }   putnow $out }</code></pre></div>It appears that "bov" are in the first line, so try correcting it using:<div class="codebox"><p>Code: </p><pre><code>scan $mode {%[-+]%[IXbegwkBEFHJLQWdfjlxACDGKMNOPRSTUVcimnprstuz]} p m</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Aug 01, 2020 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-08-01T10:41:51-04:00</updated>

		<published>2020-08-01T10:41:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108846#p108846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108846#p108846"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108846#p108846"><![CDATA[
would there be any other method to have this set any channel mode instead of being restricted ?<br><br>these are the available channel modes on the ircd :<br><blockquote class="uncited"><div>IXbegwkBEFHJLQWdfjlxACDGKMNOPRSTUVcimnprstuz </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Aug 01, 2020 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-31T15:52:33-04:00</updated>

		<published>2020-07-31T15:52:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108842#p108842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108842#p108842"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108842#p108842"><![CDATA[
oh euhm yea true didnt see that part thnx caesar heh<br><br>also the thing is if we use bind pubm o|o<br>it wont recognize like chanops and chanhalfops<br><br>as some may not have the flag set on them and there is no need to if they  are chanops halfops<br><br>what would be the proper way to check if flag o is set on a nick to give it access to this command while also allowing regular chanops  halfops access as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 31, 2020 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-07-31T14:45:35-04:00</updated>

		<published>2020-07-31T14:45:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108841#p108841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108841#p108841"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108841#p108841"><![CDATA[
Why do you bother with <em class="text-italics">[matchattr [nick2hand $nick] o|o $chan]</em> when:<br><br>1. you already got the user's account in the hand variable;<br>2. you should change the bind to <em class="text-italics">bind pubm o|o</em> directly and drop this part.<br><br>What issues you got with <em class="text-italics">massmode</em>? Apart it not seeing other flags apart than bov obviously? <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=187">caesar</a> — Fri Jul 31, 2020 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-31T08:59:31-04:00</updated>

		<published>2020-07-31T08:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108840#p108840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108840#p108840"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108840#p108840"><![CDATA[
would there be a way to  use without the  pushmode to evade all these issues with RFC<br><br>like using user's massmode code:<br><div class="codebox"><p>Code: </p><pre><code>proc massmode {chan mode arg} {  scan $mode {%[-+]%[bov]} p m  set j [llength $arg]  set k [expr {${::modes-per-line}-1}]  set out "";for {set i 0} {$i&lt;$j} {incr i} {  set args [lrange $arg $i [incr i $k]]  append out "MODE $chan $p[string repeat $m [llength $args]] [join   $args]\n" }   putnow $out } </code></pre></div><br><a href="http://forum.egghelp.org/viewtopic.php?t=7273&amp;highlight=massmode" class="postlink">http://forum.egghelp.org/viewtopic.php? ... t=massmode</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 31, 2020 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-07-31T08:55:34-04:00</updated>

		<published>2020-07-31T08:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108839#p108839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108839#p108839"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108839#p108839"><![CDATA[
I'm to lazzy to search, can you paste the custom pushmode you have plz ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jul 31, 2020 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-31T08:52:49-04:00</updated>

		<published>2020-07-31T08:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108838#p108838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108838#p108838"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108838#p108838"><![CDATA[
yes thommey told me pushmode only excepts RFC modes<br>but even using the custom pushmode thommey wrote for me doesnt seem to take it so it must be something else<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 31, 2020 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-07-31T08:45:59-04:00</updated>

		<published>2020-07-31T08:45:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108837#p108837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108837#p108837"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108837#p108837"><![CDATA[
Ok, I was guessing something like that...<br>But $modex is just the mode, so don't complicate things:<div class="codebox"><p>Code: </p><pre><code>if { [onchan [string map {+ "" - ""} $modex] $chan] } { return 0 }</code></pre></div><blockquote class="uncited"><div>i tried your code it works for +l 22 but not for like +J 10</div></blockquote>Does pushmode only accept RFC modes ? I'll have a look on that<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jul 31, 2020 8:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-31T08:36:19-04:00</updated>

		<published>2020-07-31T08:36:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108836#p108836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108836#p108836"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108836#p108836"><![CDATA[
tnx for your reply crazycat <br>the : if {[onchan [string trimleft [split $modex 0] "+-"] $chan]} { return 0 }<br>is to check if the first parameter doesnt contain a nick wich is on channel <br>and the pushmode2 was a typo should be pushmode<br><br>i tried your code it works for +l 22 but not for like +J 10<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 31, 2020 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-07-31T08:22:39-04:00</updated>

		<published>2020-07-31T08:22:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108835#p108835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108835#p108835"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108835#p108835"><![CDATA[
Well, peharps do you play too much with list/string conversions...<br>And you call pushmode2, what is this procedure ?<br>finally, what is exactly doing <div class="codebox"><p>Code: </p><pre><code>if {[onchan [string trimleft [split $modex 0] "+-"] $chan]} { return 0 }</code></pre></div>Here is how I think your proc must be:<div class="codebox"><p>Code: </p><pre><code>bind pubm - "#% +?*" pub:massmodez316bind pubm - "#% -?*" pub:massmodez316proc pub:massmodez316 {nick host hand chan text} {if {![matchattr [nick2hand $nick] o|o $chan] &amp;&amp; ![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan]} { return 0  }set modex [join [lindex [split $text] 0]]if { [llength [split $text]]==1 } {pushmode $chan $modex} else {foreach user [lrange [split $text] 1 end] {pushmode $chan $modex $user}}    flushmode $chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jul 31, 2020 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-31T07:35:24-04:00</updated>

		<published>2020-07-31T07:35:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108834#p108834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108834#p108834"/>
		<title type="html"><![CDATA[doesnt set certain modes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108834#p108834"><![CDATA[
i was wondering why this sets like:<br><br> +k jhjhas <br>and like +o nick nick nick<br><br>but wont set like:<br><br>+l 22<br>+J  10<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "#% +?*" pub:massmodez316bind pubm - "#% -?*" pub:massmodez316proc pub:massmodez316 {nick host hand chan text} {       if {![matchattr [nick2hand $nick] o|o $chan] &amp;&amp; ![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan]} { return 0  }        set modex [lindex [split $text] 0]        set nickz [join [lrange [split $text] 1 end]]        set nickz [string trim $nickz]        if {[onchan [string trimleft [split $modex 0] "+-"] $chan]} { return 0 }        if {![llength [split $nickz]]} {                pushmode $chan $modex                return 0        }   else { foreach user [split $nickz] {   pushmode $chan $modex $user         }}       flushmode $chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 31, 2020 7:35 am</p><hr />
]]></content>
	</entry>
	</feed>
