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

	<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-08-10T11:05:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-10T11:05:23-04:00</updated>

		<published>2022-08-10T11:05:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111266#p111266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111266#p111266"/>
		<title type="html"><![CDATA[strip ~ anywhere in the mask and replace with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111266#p111266"><![CDATA[
thanks CrazyCat that seems to work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Aug 10, 2022 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2022-08-10T10:52:35-04:00</updated>

		<published>2022-08-10T10:52:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111265#p111265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111265#p111265"/>
		<title type="html"><![CDATA[strip ~ anywhere in the mask and replace with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111265#p111265"><![CDATA[
Use regsub:<div class="codebox"><p>Code: </p><pre><code>regsub -all -- ~ $chost \* chost</code></pre></div>Test:<div class="codebox"><p>Code: </p><pre><code>% set chost nick!~ident@hostnick!~ident@host% regsub -all -- ~ $chost \* chost1% puts $chostnick!*ident@host</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Aug 10, 2022 10:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-08-10T10:46:39-04:00</updated>

		<published>2022-08-10T10:46:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111264#p111264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111264#p111264"/>
		<title type="html"><![CDATA[strip ~ anywhere in the mask and replace with *]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111264#p111264"><![CDATA[
greetz gentz, <br><br>im using a small code to add users in eggdrop access list and am wondering how to replace ~ with * in a mask like nick!~ident@host <br>heres the code we use:<br><div class="codebox"><p>Code: </p><pre><code>bind pub m !adduser pub_adduserproc pub_adduser {nick host handle channel testes} {set who [lindex [split $testes] 0 ]set who "[string trimleft $who "+@"]"set accesschan [lindex [split $testes] 1 ] if {[matchattr $who +n]} {  putserv "NOTICE $nick :You Cannot Change An Owner's Attributes." ; return 1 } if {$who eq ""} { putnow "notice $nick :Syntax is: !adduser \&lt;nick\&gt; \&lt;channel\&gt; or !adduser \&lt;nick\&gt;" ; return 0 } if {$accesschan eq ""} { set accesschan "$channel" }  if {![onchan $who $accesschan]} {  putserv "NOTICE $nick :$who isn't on $accesschan."  return 1}if {[set chost [getchanhost $who $accesschan]] ne ""} {switch -glob -- $chost {{*.irccloud.com} - {*.mibbit.com} - {*.kiwiirc.com} - {*2001*67c*2f08*} - {*192.184.8.*} - {*192.184.9.*} - {*192.184.9.*} - {*192.184.10.*} {                         set accessmask "[string trimleft [lindex [split $chost @] 0] "~"]"       set what "*!*[string tolower [string range $accessmask 1 end]]@*"}{default} {                           set what [maskhost $who!$chost 5]}}}  adduser $who  chattr $who |+o $accesschan setuser $who HOSTS $what putserv "NOTICE $nick :Added $who to User-Database." return 1} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Aug 10, 2022 10:46 am</p><hr />
]]></content>
	</entry>
	</feed>
