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

	<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-08-21T12:32:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[crazy-nic]]></name></author>
		<updated>2003-08-21T12:32:38-04:00</updated>

		<published>2003-08-21T12:32:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25423#p25423</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25423#p25423"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25423#p25423"><![CDATA[
hmm.. tried that it cant work<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3435">crazy-nic</a> — Thu Aug 21, 2003 12:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-21T11:18:13-04:00</updated>

		<published>2003-08-21T11:18:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25421#p25421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25421#p25421"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25421#p25421"><![CDATA[
try:<br>newchanban $thechan $gethost cmdcript "-" 10 sticky<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Aug 21, 2003 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crazy-nic]]></name></author>
		<updated>2003-08-21T10:39:04-04:00</updated>

		<published>2003-08-21T10:39:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25419#p25419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25419#p25419"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25419#p25419"><![CDATA[
i tried but it wont work i make something like this: <br><br>bind msg m "!cmd" mypvtcommand <br><br>proc mypvtcommand {nick host hand arg} { <br>   if {$arg == ""} { return } <br><br>   set theaction [string tolower [lindex $arg 0]] <br>   set thechan [string tolower [lindex $arg 1]] <br>   set thenick [string tolower [lindex $arg 2]] <br>   set reasons [string tolower [lindex $arg 3]]<br><br>   switch -exact $theaction { <br>     kick { <br>       if {[onchan $thenick $thechan]} { <br>         putkick $thechan $thenick $reasons<br>       } <br>     } <br>     ban {<br>        if {[onchan $thenick $thechan]} {<br>        set gethost [ getchanhost $thenick $thechan ]<br>         newchanban $thechan $gethost $nick - 10 sticky<br>               putkick $thechan $thenick $reasons<br>      }<br>     }<br>    }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3435">crazy-nic</a> — Thu Aug 21, 2003 10:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-08-21T07:29:49-04:00</updated>

		<published>2003-08-21T07:29:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25409#p25409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25409#p25409"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25409#p25409"><![CDATA[
also u can do it like this:<br><strong class="text-strong">newchanban &lt;channel&gt; &lt;ban&gt; &lt;creator&gt; &lt;comment&gt; [lifetime] [options]</strong><br>in your case <strong class="text-strong">[option]</strong> would be sticky.<br><br>for example:<br><strong class="text-strong">newchanban $chan $ban cmdscript "$reason" 10 sticky</strong><br>this would create a 10 minutes sticky ban.<blockquote class="uncited"><div>    Options:<br>      sticky: forces the ban to be always active on a channel, even<br>              with dynamicbans on<br>      none:   no effect</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Aug 21, 2003 7:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2003-08-21T06:14:07-04:00</updated>

		<published>2003-08-21T06:14:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25400#p25400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25400#p25400"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25400#p25400"><![CDATA[
### stick [ban/exempt/invite] &lt;hostmask/number&gt; [channel]<br>Makes a ban, exempt, or invite "sticky". This means that the bot will always try to keep it active on the channel, even if the channel is using dynamic bans. Obviously, if the channel isn't using dynamic bans, this has no effect.<br><br>See also: bans, exempts, invites, unstick, +ban, +exempt, +invite<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Aug 21, 2003 6:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crazy-nic]]></name></author>
		<updated>2003-08-21T05:32:21-04:00</updated>

		<published>2003-08-21T05:32:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25397#p25397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25397#p25397"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25397#p25397"><![CDATA[
hmm.. okie.. i got it working.. but then how to make a stick ban? i'm not quite sure.... sorry... to trouble... you all...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3435">crazy-nic</a> — Thu Aug 21, 2003 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z_one]]></name></author>
		<updated>2003-08-19T06:37:42-04:00</updated>

		<published>2003-08-19T06:37:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25256#p25256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25256#p25256"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25256#p25256"><![CDATA[
In the bot's pvt type:   <strong class="text-strong">cmd kick #channel nick</strong><br>where #channel is the channel you want to kick nick from.<br>You must have master (m) or owner (n) flags for this to work.<br><div class="codebox"><p>Code: </p><pre><code>bind msg m "cmd" mypvtcommandproc mypvtcommand {nick host hand arg} {   if {$arg == ""} { return }   set theaction [string tolower [lindex $arg 0]]   set thechan [string tolower [lindex $arg 1]]   set thenick [string tolower [lindex $arg 2]]   switch -exact $theaction {     kick {       if {[onchan $thenick $thechan]} {         putkick $thechan $thenick       }     }   }}</code></pre></div>I'm sure you can figure out the rest (how to ban or kick ban)  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>Hint: use <strong class="text-strong">getchanhost</strong> to get the host of the nick you need to ban.<br><br>z_one<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=698">z_one</a> — Tue Aug 19, 2003 6:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[crazy-nic]]></name></author>
		<updated>2003-08-19T06:13:00-04:00</updated>

		<published>2003-08-19T06:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25255#p25255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25255#p25255"/>
		<title type="html"><![CDATA[Help in scripting tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25255#p25255"><![CDATA[
i've got a problem in scripting this. If u wan to ban someone in channel rite? but u dun wan it to be public so u msg bot and type a command so it will excute a command. the commands i having trouble is kick, kickban and ban and unban i hope your would give me a help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3435">crazy-nic</a> — Tue Aug 19, 2003 6:13 am</p><hr />
]]></content>
	</entry>
	</feed>
