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

	<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-10T13:13:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-06-10T13:13:39-04:00</updated>

		<published>2003-06-10T13:13:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21605#p21605</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21605#p21605"/>
		<title type="html"><![CDATA[Need help converting a script to tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21605#p21605"><![CDATA[
In eggdrop, we use the 'bind' command instead of 'on'. Check tcl-commands.doc for different bind types -- you need the 'join' bind.<br><br>Next, the 'maskhost' command will give you a mask in the form *!ident@*.domain.com.<br><br>Then get the channel list with 'chanlist' and cycle through it, getting each host with 'getchanhost' and matching it with 'string match'. You can use 'isop', 'ishalfop', and 'isvoice' to check if the matched nicks have those flags.<br><br>Then use newchanban and putkick to ban and kick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Jun 10, 2003 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-10T12:33:19-04:00</updated>

		<published>2003-06-10T12:33:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21602#p21602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21602#p21602"/>
		<title type="html"><![CDATA[Need help converting a script to tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21602#p21602"><![CDATA[
NE1?<p>Statistics: Posted by Guest — Tue Jun 10, 2003 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-06-08T13:50:15-04:00</updated>

		<published>2003-06-08T13:50:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21469#p21469</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21469#p21469"/>
		<title type="html"><![CDATA[Need help converting a script to tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21469#p21469"><![CDATA[
hi.  i have a small script, a few lines of code that automatically kick clones and guest nicks as soon as they join my channel.  i was wonderin if someone could help me convert it to a tcl so i can load it onto my eggy.  thanks<br><div class="codebox"><p>Code: </p><pre><code>ON *:JOIN:#Godz-Zone: {  if ( $ialchan( $wildsite, $chan, 0 ) &gt; 1) {    if ( ( $ialchan( $wildsite, $chan, 1 ).nick isop $chan ) || ( $ialchan( $wildsite, $chan, 2 ).nick isop $chan ) ) { halt }    if ( ( $ialchan( $wildsite, $chan, 1 ).nick ishop $chan ) || ( $ialchan( $wildsite, $chan, 2 ).nick ishop $chan ) ) { halt }    if ( ( $ialchan( $wildsite, $chan, 1 ).nick isvoice $chan ) || ( $ialchan( $wildsite, $chan, 2 ).nick isvoice $chan ) ) { halt }    ban -u1800 $chan $nick 9    kick $chan $nick Clones are not allowed in $chan $+ . 30 min ban.  }  if ( $lower( $left( $nick, 6 ) ) == [godz]- ) {    .mode $chan +v $nick  }  if ( $lower( $left( $nick, 5 ) ) == guest ) {    ban -u60 $chan $nick 9    kick $chan $nick Guest nicks are not allowed this channel. Please change your nick. 1 min ban.  }}ON *:NICK: {  if ( $newnick isin #Godz-Zone ) {    ban -u60 $chan $newnick 9    kick $chan $nick Guest nicks are not allowed this channel. Please change your nick. 1 min ban.  }}</code></pre></div><p>Statistics: Posted by Guest — Sun Jun 08, 2003 1:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
