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

	<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>2022-03-15T12:25:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-15T12:25:00-04:00</updated>

		<published>2022-03-15T12:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110992#p110992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110992#p110992"/>
		<title type="html"><![CDATA[pub modes command sets odd banmasks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110992#p110992"><![CDATA[
thanks CC both seem to work well , any reason why the second would be more proper ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Mar 15, 2022 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-15T10:15:37-04:00</updated>

		<published>2022-03-15T10:15:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110988#p110988</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110988#p110988"/>
		<title type="html"><![CDATA[pub modes command sets odd banmasks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110988#p110988"><![CDATA[
Simple method:<div class="codebox"><p>Code: </p><pre><code>bind pubm n|n "#% +?*" pub:massmodez317bind pubm n|n "#% -?*" pub:massmodez317proc pub:massmodez317 {nick host hand chan text} {   set modex [join [lindex [split $text] 0]]  set restmodes [join [lrange [split $text] 1 end]]  if { [onchan [string map {+ "" - ""} $modex] $chan] } { return 0 }   if { [llength [split $text]] == 2 } {      putnow "MODE $chan $modex $restmodes"   } else {  return 0  }} </code></pre></div>Better method:<div class="codebox"><p>Code: </p><pre><code>bind pubm n|n "#% +?*" pub:massmodez317bind pubm n|n "#% -?*" pub:massmodez317proc pub:massmodez317 {nick host hand chan text} {   if {[llength [split $text]]!=2} { return 0}   set modex [join [lindex [split $text] 0]]   if { [onchan [string map {+ "" - ""} $modex] $chan] } { return 0 }   set restmodes [join [lrange [split $text] 1 end]]   putnow "MODE $chan $modex $restmodes"} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Mar 15, 2022 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-15T09:15:16-04:00</updated>

		<published>2022-03-15T09:15:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110985#p110985</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110985#p110985"/>
		<title type="html"><![CDATA[pub modes command sets odd banmasks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110985#p110985"><![CDATA[
thanks CC for your response but im kinda lost how to use it proper <br><br>would you have an examples ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Mar 15, 2022 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-03-15T08:09:37-04:00</updated>

		<published>2022-03-15T08:09:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110984#p110984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110984#p110984"/>
		<title type="html"><![CDATA[pub modes command sets odd banmasks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110984#p110984"><![CDATA[
Use join to get a string rather than a list: split creates a list, lrange works on list. You want text.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Mar 15, 2022 8:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-03-15T06:08:18-04:00</updated>

		<published>2022-03-15T06:08:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110983#p110983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110983#p110983"/>
		<title type="html"><![CDATA[pub modes command sets odd banmasks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110983#p110983"><![CDATA[
im using this code for a while and cant figure out why it sets weird banmasks<br>on certain nicks i was told on eggdrop support channel not to use split but even after consulting the docs i couldnt figure it out<br><br>this is the code : <br><div class="codebox"><p>Code: </p><pre><code>bind pubm n|n "#% +?*" pub:massmodez317bind pubm n|n "#% -?*" pub:massmodez317proc pub:massmodez317 {nick host hand chan text} {   set modex [join [lindex [split $text] 0]]  set restmodes [lrange [split $text] 1 end]  if { [onchan [string map {+ "" - ""} $modex] $chan] } { return 0 }   if { [llength [split $text]] == 2 } {      putnow "MODE $chan $modex $restmodes"   } else {  return 0  }}</code></pre></div>for example when i set a ban on a nick like [somenick] or {somenick} like this <br><br>+b [somenick]<br>+b {somenick}<br><br>it sets it as +b {{[somenick]}}<br>it sets it as +b {{{somenick}}}<br><br>i was told it has to do with the split that was used<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Mar 15, 2022 6:08 am</p><hr />
]]></content>
	</entry>
	</feed>
