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

	<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>2004-05-04T10:07:51-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-05-04T10:07:51-04:00</updated>

		<published>2004-05-04T10:07:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36102#p36102</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36102#p36102"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36102#p36102"><![CDATA[
@ CoMMy : replace your "ischanset" with "channel get" and voila! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> also, next time don't be lazy and consult the tcl-commands.doc file. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>@ user : Thanks for sharing that info <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue May 04, 2004 10:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-05-04T05:35:57-04:00</updated>

		<published>2004-05-04T05:35:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36098#p36098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36098#p36098"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36098#p36098"><![CDATA[
Well this is the ischanset proc<br><div class="codebox"><p>Code: </p><pre><code>proc ischanset {chan setting} {set setting "+[string tolower $setting]"foreach item [string tolower [channel info $chan]] {if {$item == $setting} { return 1 }}return 0 }</code></pre></div>This uses the old method of getting a channel flag. Can you update the proc to use "channel get" please? I need to change this because i have a lot of procs using ischanset.<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Tue May 04, 2004 5:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-05-03T17:05:19-04:00</updated>

		<published>2004-05-03T17:05:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36082#p36082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36082#p36082"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36082#p36082"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>if {![ischanset $c noclones]||[matchattr $h o|o $c]} return </div></blockquote>and you haven't missed some } and { too? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><br><br>Ps: Use the default "channel get" instead of the "ischanset" proc. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>There are no missing {}'s. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> (strings with no whitespace/special chars don't need escaping/quoting) Calling a proc instead of using the recently added "channel get" makes sense if you want your script to work on older eggdrop models AND i stole that part from his example, so I assume he's got a proc doing the right thing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 03, 2004 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-05-03T14:08:06-04:00</updated>

		<published>2004-05-03T14:08:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36071#p36071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36071#p36071"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36071#p36071"><![CDATA[
I'll try your advice user and check to see if it works.<br><br>Basically my proc kick+banned everyone who joined that chan regarding if the host matched !!!!<br><br>Anyway. I'll try it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon May 03, 2004 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-05-03T12:03:17-04:00</updated>

		<published>2004-05-03T12:03:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36066#p36066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36066#p36066"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36066#p36066"><![CDATA[
<blockquote class="uncited"><div>if {![ischanset $c noclones]||[matchattr $h o|o $c]} return </div></blockquote>and you haven't missed some } and { too? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><br><br>Ps: Use the default "channel get" instead of the "ischanset" proc. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 03, 2004 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-05-03T10:48:37-04:00</updated>

		<published>2004-05-03T10:48:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36059#p36059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36059#p36059"/>
		<title type="html"><![CDATA[Re: Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36059#p36059"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind join - * joinerproc joiner {nick host handle chan} {global botnick ban_typeif {[ischanset $chan noclones]} {if {![matchattr $handle &amp;o $chan] || ![matchattr $handle o]} {foreach user [chanlist $chan] {set what "$user![getchanhost $user $chan]"if {[string match -nocase "*$host*" "$what"]} {newchanban $chan [hostmasktype $nickshost $ban_type] $botnick "Clones In $chan" "15" stickyputquick "KICK $chan $user Clones Are Not Allowed" -next}}}putquick "KICK $chan $nick Clones Are Not Allowed" -next }</code></pre></div></div></blockquote>You're missing a } there...and you seem to be kicking anyone joining the +noclones channel...a bit weird <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> Try something like this:<div class="codebox"><p>Code: </p><pre><code>bind join - * joinerproc joiner {n u h c} {if {![ischanset $c noclones]||[matchattr $h o|o $c]} returnforeach x [chanlist $c] {if {[string equal -nocase $n $x]} continueif {[string equal -nocase $u [getchanhost $x $c]]} {# same user@host... kick $x and $n then return or break}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 03, 2004 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-05-03T08:58:12-04:00</updated>

		<published>2004-05-03T08:58:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36058#p36058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36058#p36058"/>
		<title type="html"><![CDATA[Help with this clone script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36058#p36058"><![CDATA[
Can anyone help with this ?<br>It bans every person it joins unless its a member of course.<br>What i want it to do is see if the person's host matches one of another person in the chan and ban both..<br><br>Here is the code.<br><div class="codebox"><p>Code: </p><pre><code>bind join - * joinerproc joiner {nick host handle chan} {global botnick ban_typeif {[ischanset $chan noclones]} {if {![matchattr $handle &amp;o $chan] || ![matchattr $handle o]} {foreach user [chanlist $chan] {set what "$user![getchanhost $user $chan]"if {[string match -nocase "*$host*" "$what"]} {newchanban $chan [hostmasktype $nickshost $ban_type] $botnick "Clones In $chan" "15" stickyputquick "KICK $chan $user Clones Are Not Allowed" -next }}}putquick "KICK $chan $nick Clones Are Not Allowed" -next }</code></pre></div>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Mon May 03, 2004 8:58 am</p><hr />
]]></content>
	</entry>
	</feed>
