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

	<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-11-11T18:21:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-11T18:21:12-04:00</updated>

		<published>2003-11-11T18:21:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29900#p29900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29900#p29900"/>
		<title type="html"><![CDATA[help with something please.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29900#p29900"><![CDATA[
Just a tip:<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>scan $uhost "%\[^@\]@%s" user host</code></pre></div></div></blockquote>There's no need to create variables you're not going to use... add a '*' to the first part of the conversion rule to avoid having the value assigned to a variable.<div class="codebox"><p>Code: </p><pre><code>scan $uhost {%*[^@]@%s} host</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Nov 11, 2003 6:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-11-11T15:55:27-04:00</updated>

		<published>2003-11-11T15:55:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29871#p29871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29871#p29871"/>
		<title type="html"><![CDATA[help with something please.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29871#p29871"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set advertiseban(banmessage) "Do Not Advertise In #ProFrag" set advertiseban(time) "120"set advertiseban(chans) "#profrag #somechannel" bind pubm - {* *#*} chanadvertiseproc chanadvertise {nick uhost hand chan text} {   global advertiseban  if {[lsearch -exact [split [strlwr $advertiseban(chans)]] [string tolower $chan]] == -1 || [isop $nick $chan] || [isvoice $nick $chan]} {    return  }  scan $uhost "%\[^@\]@%s" user host  newchanban $chan *!*@$host spam "$advertiseban(banmessage)" $advertiseban(time)}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Nov 11, 2003 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Carnage69]]></name></author>
		<updated>2003-11-11T15:33:40-04:00</updated>

		<published>2003-11-11T15:33:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29868#p29868</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29868#p29868"/>
		<title type="html"><![CDATA[help with something please.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29868#p29868"><![CDATA[
Hello i am trying to make a anti advertise script and it bans everyone in the chan that talks can someone help me here is the script.<br><div class="codebox"><p>Code: </p><pre><code>set advertiseban(banmessage) "Do Not Advertise In #ProFrag"set advertiseban(time) "120"set advertiseban(chan) "#profrag"bind pubm - "$advertiseban(chan) *#*" chanadvertiseproc chanadvertise { nick host hand chan text } {  global advertiseban botnick  if { [isop $nick $chan] || [isvoice $nick $chan] } {  return 1  }  set newhost "*!*[string range $host [string first @ $host] end]"  set comment " $advertiseban(banmessage) (2 Hours)"  newchanban $chan $newhost $botnick $comment $advertiseban(time)  return 1}putlog "Anti Advertise v1.0 by Carnage Loaded."    </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3299">Carnage69</a> — Tue Nov 11, 2003 3:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
