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

	<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-04-20T12:04:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-20T12:04:23-04:00</updated>

		<published>2022-04-20T12:04:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111069#p111069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111069#p111069"/>
		<title type="html"><![CDATA[replacing certain characters in nick banmask with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111069#p111069"><![CDATA[
yes your right that makes more sense as i got the double * if chars are placed at end and start of nick tested it and it seems to work as expected <br>thanks SpiKe^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Apr 20, 2022 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-04-20T00:49:05-04:00</updated>

		<published>2022-04-20T00:49:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111068#p111068</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111068#p111068"/>
		<title type="html"><![CDATA[replacing certain characters in nick banmask with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111068#p111068"><![CDATA[
This script logic makes more sense to me...<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !badnick pub:badnick2Aproc pub:badnick2A {nick host hand chan text} {  if {![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan] &amp;&amp; ![matchattr $hand o|o $chan]} { return 0 }  set nklist [split [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]]  if {![llength $nklist]} {  putnow "notice $nick :Syntax: !badnick nick" ;  return 0  }  set reason "Please change your nick by using: /nick NewNick and rejoin by using: /join $chan ...... thank you."  set users [list]  foreach user $nklist {    if {[onchan $user $chan]} {      if {![isop $user $chan] &amp;&amp; ![ishalfop $user $chan] &amp;&amp; ![matchattr [nick2hand $user $chan] o|o $chan]} {        pushmode $chan +b *[string trim [regsub -all {[^a-zA-Z]+} $user "*"] "*"]*!*@*        lappend users $user      }    } else {  pushmode $chan +b *[string trim [regsub -all {[^a-zA-Z]+} $user "*"] "*"]*!*@*  }  }  flushmode $chan  if {[llength $users]} {  putkick $chan [join $users ","] $reason  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Wed Apr 20, 2022 12:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-19T17:53:03-04:00</updated>

		<published>2022-04-19T17:53:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111067#p111067</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111067#p111067"/>
		<title type="html"><![CDATA[replacing certain characters in nick banmask with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111067#p111067"><![CDATA[
this is with  kicks added as well <br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !badnick pub:badnick2Aproc pub:badnick2A {nick host hand chan text} {           if {![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan] &amp;&amp; ![matchattr $hand o|o $chan]} { return 0 }      set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]      global botnick      set users [list]      set reason "PLease change your name by using\: /nick NewNick and rejoin by using\: /join $chan ...... thank you."    set text  [split $text]    regsub -all {[0-9\-\_`\[\]\{\}\\\|]} $text "*" textolo       regsub -all -- {\*{2,}} $textolo "*" textwaxem      foreach user $text {         if {![onchan $user $chan]} {            pushmode +chan +b  *$textwaxem*!*@*         } else {                    if {![isop $user $chan] &amp;&amp; ![ishalfop $user $chan] &amp;&amp; ![matchattr $hand o|o $chan]} {                    pushmode $chan +b *$textwaxem*!*@*                      putserv "kick $chan $user $reason" }         }   }      flushmode  $chan }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 19, 2022 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-19T16:03:13-04:00</updated>

		<published>2022-04-19T16:03:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111066#p111066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111066#p111066"/>
		<title type="html"><![CDATA[replacing certain characters in nick banmask with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111066#p111066"><![CDATA[
thanks to MMX and SpiKe^^ it has been resolved on IRC<br><br>this is the end code incase anybody needs it:<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !badnick pub:badnick2Aproc pub:badnick2A {nick host hand chan text} {  if {![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan] &amp;&amp; ![matchattr $hand o|o $chan]} { return 0 }set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]set items [split $text]if {[llength $items] &lt; 1} { putnow "notice $nick :Syntax !badnick nick" ; return }     regsub -all {[0-9\-\_`\[\]\{\}\\\|]} $text "*" text       regsub -all -- {\*{2,}} $text "*" textforeach user $text { pushmode $chan +b *$user*!*@* }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 19, 2022 4:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-04-19T23:09:59-04:00</updated>

		<published>2022-04-19T15:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111065#p111065</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111065#p111065"/>
		<title type="html"><![CDATA[replacing certain characters in nick banmask with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111065#p111065"><![CDATA[
greetingz, i was wondering if this could be changed to make sure that digits in the nick are replaced with a * so even if like <br><br>nick1234!*@* <br><br>to have it like <br><br>nick*!*@*<br><br>and n23ck`!*@*<br><br>to be like n*ck*!*@*<br><br>the characters we look for to replace with * are:<br><blockquote class="uncited"><div> 0-9  ` - _ [ ]  { } \ | </div></blockquote> <br><div class="codebox"><p>Code: </p><pre><code> bind pub -|- !badnick pub:badnick2Aproc pub:badnick2A {nick host hand chan text} {  if {![isop $nick $chan] &amp;&amp; ![ishalfop $nick $chan] &amp;&amp; ![matchattr $hand o|o $chan]} { return 0 }set text set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]set items [split $text]if {[llength $items] &lt; 1} { putnow "notice $nick :Syntax !nl nick" ; return }foreach user $text { pushmode $chan +b *$user*!*@* }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Tue Apr 19, 2022 3:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
