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

	<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>2001-10-08T20:04:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-10-08T20:04:00-04:00</updated>

		<published>2001-10-08T20:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=385#p385</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=385#p385"/>
		<title type="html"><![CDATA[Getting rid of ^b etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=385#p385"><![CDATA[
The quickest method is to use regsub<br><br>If the nick with the bold taks is in the var $str<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {[1code]regsub -all -- {03[0-9]{0,2}(,[0-9]{0,2})?|17|37|02|26} $str "" str[/code1]03[0-9]{0,2}(,[0-9]{0,2})?|17|37|[1code]regsub -all -- {03[0-9]{0,2}(,[0-9]{0,2})?|17|37|02|26} $str "" str[/code1]02|26} $str "" str</code></pre></div>$str would now have the bold tags filtered. This will also filter out any other CTRL tags used in IRC (EG color, reverse, underline, normal)<br><br>example use<div class="codebox"><p>Code: </p><pre><code>bind pub - "!test" test:bindproc test:bind {nick uh hand chan str} {  regsub -all -- {[1code]bind pub - "!test" test:bindproc test:bind {nick uh hand chan str} {  regsub -all -- {03[0-9]{0,2}(,[0-9]{0,2})?|17|37|02|26} $str "" str  blah blah}[/code1]03[0-9]{0,2}(,[0-9]{0,2})?|17|37|[1code]bind pub - "!test" test:bindproc test:bind {nick uh hand chan str} {  regsub -all -- {03[0-9]{0,2}(,[0-9]{0,2})?|17|37|02|26} $str "" str  blah blah}[/code1]02|26} $str "" str  blah blah}</code></pre></div>In the above example, all CTRL tags are removed from the test line sent to the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 08, 2001 8:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-08T19:35:00-04:00</updated>

		<published>2001-10-08T19:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=384#p384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=384#p384"/>
		<title type="html"><![CDATA[Getting rid of ^b etc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=384#p384"><![CDATA[
I have script that gets a nick from services and in this case the nick is bolded. How can I get rid of the damn ^b? I'm starting to go insane here. <p>Statistics: Posted by Guest — Mon Oct 08, 2001 7:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
