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

	<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-05-01T13:10:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-01T13:10:51-04:00</updated>

		<published>2022-05-01T13:10:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111088#p111088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111088#p111088"/>
		<title type="html"><![CDATA[change output of banmask checker]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111088#p111088"><![CDATA[
Thanks SpiKe^^ for correcting it ive tested it and it seems to work as expected thanks for that much apreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 01, 2022 1:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-05-01T01:44:23-04:00</updated>

		<published>2022-05-01T01:44:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111087#p111087</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111087#p111087"/>
		<title type="html"><![CDATA[Pub: BanMask-Tester v0.3]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111087#p111087"><![CDATA[
Well, I don't think I would put the sort in the foreach loop. Try this one...<br><div class="codebox"><p>Code: </p><pre><code>####  Pub: BanMask-Tester v0.3  #### bind pub n !ipcheck Pub:BanMask-Testerproc Pub:BanMask-Tester {nick host hand chan text} {  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  set target [lindex [split $text] 0]  if {[string first ":" $target] &gt; -1} { set target [lindex [split $target ":"] 1] }  set users [list]  foreach n [chanlist $chan] {    if {[matchaddr $target $n![getchanhost $n $chan]]} {  lappend users $n  }  }  if {[llength $users]} {  set cnt 0  ;  set say ""    foreach n [lsort -dictionary $users] {  append say " ([incr cnt]) $n"  }    if {$cnt == 1} {  set plural "Nick is"  } else {  set plural "Nicks are"  }    putserv "notice $nick :($cnt) $plural affected:$say"  } else {  putserv "notice $nick :No nicks are affected."  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 01, 2022 1:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-01T00:20:32-04:00</updated>

		<published>2022-05-01T00:20:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111086#p111086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111086#p111086"/>
		<title type="html"><![CDATA[change output of banmask checker]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111086#p111086"><![CDATA[
i did an attempt it seems to work but im not sure if its the proper way to do it<br><div class="codebox"><p>Code: </p><pre><code>bind pub n !ipcheck Pub:BanMask-Testerproc Pub:BanMask-Tester {nick host hand chan text} {  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  set target [lindex [split $text] 0]  if {[string first ":" $target] &gt; -1} { set target [lindex [split $target ":"] 1] }  set users [list]  foreach n [chanlist $chan] {    if {[matchaddr $target $n![getchanhost $n $chan]]} {  lappend users $n ; set users [lsort -dictionary $users] }  }  if {[llength $users]} {  set cnt 0  ;  set say ""    foreach n $users {  append say " ([incr cnt]) $n"  }    if {$cnt == 1} {  set plural "Nick is"  } else {  set plural "Nicks are"  }    putserv "notice $nick :($cnt) $plural affected:$say"  } else {  putserv "notice $nick :No nicks are affected."  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 01, 2022 12:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-05-01T00:16:19-04:00</updated>

		<published>2022-05-01T00:16:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111085#p111085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111085#p111085"/>
		<title type="html"><![CDATA[change output of banmask checker]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111085#p111085"><![CDATA[
thanks for the swift reply SpiKe^^<br>i tested it and it seems to do exactly as expected excellent thanks for that<br>1 last request if i may , if it would be possible to have the output in alphabetical order as it seems to output in random order atm<br><br>thanks in advance,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sun May 01, 2022 12:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-04-30T21:37:13-04:00</updated>

		<published>2022-04-30T21:37:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111084#p111084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111084#p111084"/>
		<title type="html"><![CDATA[Pub: BanMask-Tester]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111084#p111084"><![CDATA[
???<br><div class="codebox"><p>Code: </p><pre><code>####  Pub: BanMask-Tester v0.2  ####bind pub n !ipcheck Pub:BanMask-Testerproc Pub:BanMask-Tester {nick host hand chan text} {  set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]  set target [lindex [split $text] 0]  if {[string first ":" $target] &gt; -1} { set target [lindex [split $target ":"] 1] }  set users [list]  foreach n [chanlist $chan] {    if {[matchaddr $target $n![getchanhost $n $chan]]} {  lappend users $n  }  }  if {[llength $users]} {  set cnt 0  ;  set say ""    foreach n $users {  append say " ([incr cnt]) $n"  }    if {$cnt == 1} {  set plural "Nick is"  } else {  set plural "Nicks are"  }    putserv "notice $nick :($cnt) $plural affected:$say"  } else {  putserv "notice $nick :No nicks are affected."  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Apr 30, 2022 9:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-30T13:04:16-04:00</updated>

		<published>2022-04-30T13:04:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111080#p111080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111080#p111080"/>
		<title type="html"><![CDATA[change output of banmask checker]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111080#p111080"><![CDATA[
greetingz gentz,<br><br>i was trying out this  small code wich checks wich nicks will be effected  with banmasks on channel currently it outputs  :<br><blockquote class="uncited"><div> nick1 nick2 nick3 nick3 nick4 </div></blockquote>if possible i wanted it to output in the manner of like :<br><blockquote class="uncited"><div>  (4) Nicks are effected: (1)  nick1 (2) nick2 (3) nick3 (4) nick4 </div></blockquote> <div class="codebox"><p>Code: </p><pre><code>bind pub n !ipcheck Pub:BanMask-Testerproc Pub:BanMask-Tester {nick host hand chan text} {    set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]   set target [lindex [split $text] 0]    if { [string first ":" $target] != -1 } { set target [lindex [split $target ":"] 1] }set users [list] foreach n [chanlist $chan] {  if {[string match -nocase $target $n![getchanhost $n $chan]]} {    lappend users $n  } }  if {[llength $users]} { putserv "notice $nick :$users"  }}</code></pre></div><br><br><br>thanks gentz,<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Apr 30, 2022 1:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
