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

	<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-07-14T21:16:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-14T21:16:56-04:00</updated>

		<published>2020-07-14T21:16:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108735#p108735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108735#p108735"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108735#p108735"><![CDATA[
Oh sorry didn't see the last question only now i did the issue was with the access check i removed the !() and added! At each check<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Jul 14, 2020 9:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-13T16:57:34-04:00</updated>

		<published>2020-07-13T16:57:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108729#p108729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108729#p108729"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108729#p108729"><![CDATA[
<blockquote class="uncited"><div>thx willyw it works fine now</div></blockquote><br>Good to hear.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>What was the solution though?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 13, 2020 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-13T16:50:52-04:00</updated>

		<published>2020-07-13T16:50:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108728#p108728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108728#p108728"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108728#p108728"><![CDATA[
thx willyw it works fine now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jul 13, 2020 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-13T15:15:35-04:00</updated>

		<published>2020-07-13T15:15:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108727#p108727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108727#p108727"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108727#p108727"><![CDATA[
some times im gettin this error :<br><br>Tcl error [parsemode]: can't read "modechar": no such variable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jul 13, 2020 3:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-13T14:51:29-04:00</updated>

		<published>2020-07-13T14:51:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108726#p108726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108726#p108726"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108726#p108726"><![CDATA[
<blockquote class="uncited"><div>thanx for the reply willyw i tried your last posted code it gave me the same result this works fine:<br><br>+v nick nick nick nick nick nick nick nick nick nick<br><br>however this doesnt :<br><br>+M<br>+m<br>+i</div></blockquote>I don't know why.  I tried a few times, both with nicks and without.  It worked fine for me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 13, 2020 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-13T14:45:10-04:00</updated>

		<published>2020-07-13T14:45:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108725#p108725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108725#p108725"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108725#p108725"><![CDATA[
thanx for the reply willyw i tried your last posted code it gave me the same result this works fine:<br><br>+v nick nick nick nick nick nick nick nick nick nick<br><br>however this doesnt :<br><br>+M<br>+m<br>+i<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jul 13, 2020 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-13T14:04:17-04:00</updated>

		<published>2020-07-13T14:04:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108724#p108724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108724#p108724"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108724#p108724"><![CDATA[
Play with this. See what you think.<br><br>I tried to make minimal changes.<br><br>There is no checking to see if bot is even op'd, or if nick to set mode on is even on #channel.   You can decide if you want to add such things in it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br><br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "#% +?*" pub:massmodez316bind pubm - "#% -?*" pub:massmodez316###proc 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 {![llength [split $nickz]]} {                pushmode $chan $modex                return 0        }        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=10420">willyw</a> — Mon Jul 13, 2020 2:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-13T11:44:47-04:00</updated>

		<published>2020-07-13T11:44:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108723#p108723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108723#p108723"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108723#p108723"><![CDATA[
thanks for your reply willyw i tried like this same effect it doesnt trigger single mode setting<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 [lrange [split $text] 1 end]   foreach user $nickz {     if {![llength $nickz]} {         pushmode $chan $modex      } else {         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> — Mon Jul 13, 2020 11:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2020-07-13T11:28:23-04:00</updated>

		<published>2020-07-13T11:28:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108722#p108722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108722#p108722"/>
		<title type="html"><![CDATA[Re: massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108722#p108722"><![CDATA[
This:<div class="codebox"><p>Code: </p><pre><code>    set nickz [join [lrange [split $text] 1 end]] </code></pre></div>*IS* setting nickz, isn't it?   It's set, there's just nothing in it.<br><br>Thus, this:<div class="codebox"><p>Code: </p><pre><code>if {![info exists nickz]}</code></pre></div>doesn't trigger.<br><br>That's what I'm thinking, based on what you've said.   <br><br>How about if instead you used ?:<div class="codebox"><p>Code: </p><pre><code>if {![llength $nickz]}</code></pre></div>By the way,   look at this part too: <div class="codebox"><p>Code: </p><pre><code>set nickz [join [lrange [split $text] 1 end]]   foreach user $nickz {</code></pre></div>The foreach command wants a list, and as it is $nickz is a string.<br>Why join it?   Why not leave it as the string returned by the lrange command?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Mon Jul 13, 2020 11:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-13T17:03:38-04:00</updated>

		<published>2020-07-13T10:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108721#p108721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108721#p108721"/>
		<title type="html"><![CDATA[massmode not working proper]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108721#p108721"><![CDATA[
any reason why the second if statement wont trigger if criteria is met in this?<br><br>the  if {![info exists nickz]} {<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]]foreach user $nickz {if {![info exists nickz]} {pushmode $chan $modex} else {pushmode $chan $modex $user}}flushmode $chan}</code></pre></div><br>for example this works  fine +v nick nick nick nick nick nick nick nick<br><br>this on the other hand doesnt<br><br>+m<br>or +M or any other single param mode setting<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Mon Jul 13, 2020 10:08 am</p><hr />
]]></content>
	</entry>
	</feed>
