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

	<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-11-30T19:12:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-30T19:12:00-04:00</updated>

		<published>2001-11-30T19:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2258#p2258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2258#p2258"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2258#p2258"><![CDATA[
Yap. Now he binds corectly. Thx Petersen!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 30, 2001 7:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-30T18:54:00-04:00</updated>

		<published>2001-11-30T18:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2256#p2256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2256#p2256"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2256#p2256"><![CDATA[
Aha .. I see. I'll test it right now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 30, 2001 6:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-11-30T18:31:00-04:00</updated>

		<published>2001-11-30T18:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2255#p2255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2255#p2255"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2255#p2255"><![CDATA[
because your bind mask is wrong. try "* *#*"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Fri Nov 30, 2001 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-30T18:23:00-04:00</updated>

		<published>2001-11-30T18:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2254#p2254</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2254#p2254"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2254#p2254"><![CDATA[
Yap. I sow my mistake with "newchanban" and corect it. Thx for advice Wcc &amp; ppslim.<br><br>At be begining this workt fine, but now I don't know why don't work and ban on any word to channel taht user. Any sugestion to fix this ?<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 30, 2001 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-30T13:05:00-04:00</updated>

		<published>2001-11-30T13:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2237#p2237</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2237#p2237"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2237#p2237"><![CDATA[
<blockquote class="uncited"><div>newchanban $channel $banmask"Lame advertise!" $bantime</div></blockquote>should be<blockquote class="uncited"><div>newchanban $channel $banmask "Lame advertise!" $bantime</div></blockquote>The newchanban in your script does not work perfectly.<br><br>If may look like it is working, but that is only because of some backup code you put in the script.<br><br>You issue a putserv to send a ban, and one to send a kick. If the ban line wasn't there, then newchanban would fail.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Nov 30, 2001 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-30T07:51:00-04:00</updated>

		<published>2001-11-30T07:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2236#p2236</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2236#p2236"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2236#p2236"><![CDATA[
Well my "newchanban" works perfectly. I'll change and test this line u told me.<br><br>Ppslim where to put some space coz I din't understand you perfectly. And why this would cause an error ? Can u be more certain pls ?<br><br>Thx!<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 30, 2001 7:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-29T21:03:00-04:00</updated>

		<published>2001-11-29T21:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2224#p2224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2224#p2224"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2224#p2224"><![CDATA[
Make sure you add a space though, as that would cause an error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Nov 29, 2001 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2001-11-29T19:45:00-04:00</updated>

		<published>2001-11-29T19:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2221#p2221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2221#p2221"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2221#p2221"><![CDATA[
For one thing, your newchanban command is wrong.<div class="codebox"><p>Code: </p><pre><code>newchanban $channel $banmask $bantime "Lame advertise!" </code></pre></div>should be <br><div class="codebox"><p>Code: </p><pre><code>newchanban $channel $banmask"Lame advertise!" $bantime </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Thu Nov 29, 2001 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-29T09:28:00-04:00</updated>

		<published>2001-11-29T09:28:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2208#p2208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2208#p2208"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2208#p2208"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"> I see. Well I'm back with a new question about a previous tcl of my own.<br><br>- Code -<br><br>bind pubm - "*#*" pub_dont_advertise <br><br>proc pub_dont_advertise {nick host handle channel arg} { <br>global botnick <br>set banmask "*!*@[lindex [split $host @] 1]" <br>set bantime "1440" <br>if [botisop $channel] { <br>if {([matchattr $handle m] || [matchattr $handle p] || [matchattr $handle b] || [matchattr $handle n] || [matchattr $handle o])} { return } <br>if {[string match "*#mychan*" $channel]} {return }<br>newchanban $channel $banmask $bantime "Lame advertise!" <br>putserv "KICK $channel $nick :Lame advertise!" <br>putserv "MODE $channel +b $banmask" <br>return 1 <br>} <br>} <br><br>putlog "Don't advertise .. loaded." <br>- Code -<br><br>With this code he react's at all words. Any sugestions to fix this problem ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":???:" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Nov 29, 2001 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-11-24T20:46:00-04:00</updated>

		<published>2001-11-24T20:46:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2007#p2007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2007#p2007"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2007#p2007"><![CDATA[
yah i know, cos i copy/pasted that bit and missed the : cos of the smilies.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sat Nov 24, 2001 8:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-24T20:09:00-04:00</updated>

		<published>2001-11-24T20:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2005#p2005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2005#p2005"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2005#p2005"><![CDATA[
Thx! .. btw .. u forgot an ":"<br><br>- Cut -<br>"putserv "KICK $dest $nick don't do channel notices." <br>- Cut -<br><br>shoud be<br><br>- Cut -<br>"putserv "KICK $dest $nick <img alt=":grin:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f601.svg">on't do channel notices." <br>- Cut -<br><br>Work's great. Thx! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Nov 24, 2001 8:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2001-11-24T09:27:00-04:00</updated>

		<published>2001-11-24T09:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1967#p1967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1967#p1967"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1967#p1967"><![CDATA[
you've not read the proc arguments properly from tcl-commands.doc<br><br>try this<br><div class="codebox"><p>Code: </p><pre><code>bind notc - * anti_notice proc anti_notice {nick host handle text {dest ""}} { global botnickif {$dest==""} { set dest $botnick }if {[validchan $dest]} { set banmask "*!*@[lindex [split $host @] 1]" set bantime "1440" if {[botisop $dest]} { if {([matchattr $handle m] || [matchattr $handle p] || [matchattr $handle b] || [matchattr $handle n] || [matchattr $handle f])} { return 0 } newchanban $dest $banmask $bantime "Don't do channel notices." putserv "KICK $dest $nick don't do channel notices." putserv "MODE $dest +b $banmask" return 1 } } }</code></pre></div>note that you might wanna protect channel |+n and |+f as well from this<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: Petersen on 2001-11-24 06:28 ]&lt;/font&gt;<br><br>&lt;font size=-1&gt;[ This Message was edited by: Petersen on 2001-11-24 06:28 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Sat Nov 24, 2001 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-24T07:27:00-04:00</updated>

		<published>2001-11-24T07:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1955#p1955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1955#p1955"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1955#p1955"><![CDATA[
- Original Code -<br>bind notc - * anti_notice<br><br>proc anti_notice {nick host handle channel arg} {<br>global botnick<br>set channel "$arg"<br>set banmask "*!*@[lindex [split $host @] 1]" <br>set bantime "1440"<br>if [botisop $channel] {<br>if {([matchattr $handle m] || [matchattr $handle p]  || [matchattr $handle b] || [matchattr $handle n] || [matchattr $handle f])} { return }<br>if {$arg == "$channel"} {<br>newchanban $channel $banmask $bantime "Don't do channel notices."<br>putserv "KICK $channel $nick <img alt=":grin:" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f601.svg">on't do channel notices."<br>putserv "MODE $channel +b $banmask"<br>return 1 }<br>}<br>}<br>- Original Code -<br><br>I just want to change 2 lines if it's possible, in a way or other. Any sugestions ?<br><br>- Line 1 -<br>set channel "$arg"<br>- Line 1 -<br><br>and<br><br>- Line 2 -<br>if {$arg == "$channel"} {<br>- Line 2 -<br><br>Thx!<br><br>PS: This is and want's to be an Anti Channel Notices. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Nov 24, 2001 7:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-11-23T23:03:00-04:00</updated>

		<published>2001-11-23T23:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1947#p1947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1947#p1947"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1947#p1947"><![CDATA[
I fail to see what you are trying to do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Nov 23, 2001 11:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2001-11-23T22:38:00-04:00</updated>

		<published>2001-11-23T22:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=1945#p1945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=1945#p1945"/>
		<title type="html"><![CDATA[Need some help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=1945#p1945"><![CDATA[
Hi again. I'm bodering u with an other tcl of my own.<br><br>- Cut -<br>proc anti_notice {nick host handle channel arg} {<br>global botnick<br>set channel "$arg"<br>set banmask "*!*@[lindex [split $host @] 1]" <br>set bantime "1440"<br>if [botisop $channel] {<br>if {([matchattr $handle m] || [matchattr $handle p]  || [matchattr $handle b] || [matchattr $handle n] || [matchattr $handle f])} { return }<br>if {$arg == "$channel"} {<br>- Cut -<br><br>As u see this is a part of an anti notice tcl. As it is right now, I meen the entire code works fine, but .. I want to change this 2 lines.<br><br>- Cut -<br>set channel "$arg"<br>- Cut -<br><br>and<br><br>- Cut -<br>if {$arg == "$channel"} {<br>- Cut -<br><br>Any sugestions in what to change them ?<br>Thx!<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 23, 2001 10:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
