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

	<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>2003-06-10T06:29:54-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-06-10T06:29:54-04:00</updated>

		<published>2003-06-10T06:29:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21556#p21556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21556#p21556"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21556#p21556"><![CDATA[
yep, thanks for the info.<br><br>I don't want to use that.. a friend of mine wants to.. I told him your remark...<br><br>thanks anyway! now it works fine!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Jun 10, 2003 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-09T15:23:25-04:00</updated>

		<published>2003-06-09T15:23:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21518#p21518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21518#p21518"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21518#p21518"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc blocked:words {nick uhost handle chan text} {  set revchan ""  regexp {(#\S+)} $text match revchan  puthelp "PRIVMSG #bot-hub :$revchan"}</code></pre></div>Just a note, though: I've seen many times that people will spam for a particular channel in order to get people angry at that channel. For instance, if #sheep bans baduser, then baduser might set up a spambot to join every channels and say "join #sheep now!!" because it annoys everybody, and some people take revenge on #sheep, when they didn't really even do it.<br><br>So the moral is, you should be careful with this, because you might be doing more harm than good.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Jun 09, 2003 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-06-09T14:58:53-04:00</updated>

		<published>2003-06-09T14:58:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21517#p21517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21517#p21517"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21517#p21517"><![CDATA[
thanks!<br><br>but for me it's the same error.<br><br>if I type: #asd<br>it says: #<br>if I type: #asd now<br>it says: #asd<br><br>hm, I don't know the error, but I'll have a closer look at it tomorrow.<br><br>thanks for your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Mon Jun 09, 2003 2:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mortician]]></name></author>
		<updated>2003-06-10T02:51:02-04:00</updated>

		<published>2003-06-09T14:30:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21515#p21515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21515#p21515"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21515#p21515"><![CDATA[
hmz well, did your the chan in your message end with a space? if you would say something like "join #chan" it will not work, if you say "join #chan now" it will work ... there is a space after the (.*) in the regexp to make sure he only takes the first word after the # ... perhaps a better way to do this is, is to take everything and split it into a list:<br><div class="codebox"><p>Code: </p><pre><code>proc blocked:words {nick uhost handle chan text} { set revchan "" regexp -line -- {#(.*)} $text -&gt; revchan set revchan "#[lindex [split $revchan] 0]" puthelp "PRIVMSG #bot-hub : $revchan" } </code></pre></div>allthough you can probably do all this in one regexp, this works for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";-)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1942">mortician</a> — Mon Jun 09, 2003 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-06-09T14:22:21-04:00</updated>

		<published>2003-06-09T14:22:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21514#p21514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21514#p21514"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21514#p21514"><![CDATA[
thx, but it won't work:<br>that's my proc:<br><br>proc blocked:words {nick uhost handle chan text} {<br>  set revchan ""<br>  regexp -line -- {#(.*) } $text -&gt; revchan <br>  set revchan "#$revchan" <br>  puthelp "PRIVMSG #bot-hub : $revchan"<br>}<br><br>but it says: "#"<br><br>thanks again!!! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> and sorry for me posting again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Mon Jun 09, 2003 2:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mortician]]></name></author>
		<updated>2003-06-09T14:16:19-04:00</updated>

		<published>2003-06-09T14:16:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21513#p21513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21513#p21513"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21513#p21513"><![CDATA[
Use the regexp just like it was in my post. (more information about regexp: <a href="http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm</a><br>And for the String manipulation, just put a # in front of $chan would do the job (e.g. set chan "#$chan")<br><div class="codebox"><p>Code: </p><pre><code>proc blocked:words {nick uhost handle chan text} { regexp -line -- {#(.*) } $text -&gt; chanset chan "#$chan"puthelp "PRIVMSG #bot-hub : $chan" } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1942">mortician</a> — Mon Jun 09, 2003 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-06-09T14:09:10-04:00</updated>

		<published>2003-06-09T14:09:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21512#p21512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21512#p21512"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21512#p21512"><![CDATA[
thx!<br><br>than 2 other questions (sorry...):<br><br>what about string manipulation? how to add the # to the front?<br>that regexp doesn't work, i tried it that way:<br><br>proc blocked:words {nick uhost handle chan text} {<br>set chan [regexp -line -- {#(.*) } $text]<br>puthelp "PRIVMSG #bot-hub : $chan"<br>}<br><br>but it says: "0".<br><br>whats that? can you help me again please? thanks!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Mon Jun 09, 2003 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mortician]]></name></author>
		<updated>2003-06-09T13:56:12-04:00</updated>

		<published>2003-06-09T13:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21511#p21511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21511#p21511"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21511#p21511"><![CDATA[
by using a regexp probably ...<br><br>e.g. if what he says is stored in the var $rest it would be something like this:<br><div class="codebox"><p>Code: </p><pre><code>regexp -line -- {#(.*) } $rest -&gt; chan</code></pre></div>$chan will be the channame without the # ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1942">mortician</a> — Mon Jun 09, 2003 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2003-06-09T12:52:39-04:00</updated>

		<published>2003-06-09T12:52:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21506#p21506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21506#p21506"/>
		<title type="html"><![CDATA[need help: advertising revenge]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21506#p21506"><![CDATA[
hi there!<br><br>I want to code a little script.<br><br>For example someone says: Hello there! Join #thischannel now!!!<br><br>I want the bot to kick the user (that's no problem), join #thischannel and says a specific line.<br><br>My problem: How to get #thischannel saved in a var?<br><br>Thanks for any help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Mon Jun 09, 2003 12:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
