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

	<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>2005-03-01T21:06:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-01T21:06:57-04:00</updated>

		<published>2005-03-01T21:06:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47121#p47121</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47121#p47121"/>
		<title type="html"><![CDATA[One script conversion mirc-&gt;tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47121#p47121"><![CDATA[
It should be something like this. Although I haven't tested it... so there could be some errors in the lindex numbers.<br><div class="codebox"><p>Code: </p><pre><code>#Set the channel for this script to work onset chan_name "#blablachan"bind join - "*" who:chanproc who:chan {nick uhost hand chan} { global chan_name  if {![string equal -nocase $chan_name $chan]} { return 0 }   if {[isbotnick $nick]} {    putserv "WHO $chan N%NA"    }   else {    putserv "WHO $chan N%NA"    }}bind raw - 354 check:ctcpproc check:ctcp {from key arg} {  if {([lindex $arg 3] == 0) || ([lindex $arg 3] == "")} {   putserv "PRIVMSG [lindex $arg 2] :\001FINGER\001"    return 1   }}bind raw - 315 do:haltproc do:halt {from key arg} { return 1}bind ctcr - FINGER ban:virusproc ban:virus {nick uhost hand dest key text} {  global chan_name  if {([string match "*(ZZZ)*" $text]} {   putserv "PRIVMSG ChanServ :$chan_name kb $nick virus drone!"   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Mar 01, 2005 9:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Neomaster]]></name></author>
		<updated>2005-03-01T12:06:42-04:00</updated>

		<published>2005-03-01T12:06:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47104#p47104</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47104#p47104"/>
		<title type="html"><![CDATA[One script conversion mirc-&gt;tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47104#p47104"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>on *:JOIN:#:{  if ( $nick == $me ) {    who $chan N%NA  }  else {    who $nick N%NA  }}RAW 354:*:{  If ( ( $3 == 0 ) || ( $3 == $NULL ) ) {    CTCP $2 FINGER  }}RAW 315:*:{  HALTDEF}on *:CTCPREPLY:FINGER*:{  var %txt = $Chr(40) $+ ZZZ $+ $Chr(41)  If ( %txt IsIn $2- ) {    /chanserv $chan kb $nick Virus Drone  }}</code></pre></div>Currently, if you finger a virus, it always return ZZZ in the string. The above do this check, and if you join the channel do a whol channel check.<br><br>If ZZZ is in the string is detected, the user gets kick banned. Any idea on how to convert this mirc script in tcl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4603">Neomaster</a> — Tue Mar 01, 2005 12:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
