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

	<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-04-09T14:42:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-09T14:42:30-04:00</updated>

		<published>2004-04-09T14:42:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35376#p35376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35376#p35376"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35376#p35376"><![CDATA[
THX! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I've put there filesys and transfer modules and it's working!! thx guys, you're perfect  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> but still.. it would be very good to do that the script would send the file only one time because this will work on a LAN chat were are about 700 lame users who very dislike seeing the message 'dcc send file.txt' in their status window.. I've messed up trying to join those two scripts together <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=4290">hide</a> — Fri Apr 09, 2004 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-09T14:03:06-04:00</updated>

		<published>2004-04-09T14:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35372#p35372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35372#p35372"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35372#p35372"><![CDATA[
Thouse are scripts not modules.. scroll a bit up! Drop the "/usr/share/" thing if the eggdrop is in the same dir as thouse files.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 09, 2004 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-09T14:00:38-04:00</updated>

		<published>2004-04-09T14:00:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35371#p35371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35371#p35371"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35371#p35371"><![CDATA[
version of eggdrop is 1.6.8, loadable modules are here:<br>source /usr/share/eggdrop/scripts/alltools.tcl<br>source /usr/share/eggdrop/scripts/action.fix.tcl<br>source /usr/share/eggdrop/scripts/compat.tcl<br>source /usr/share/eggdrop/scripts/userinfo.tcl<br>source /usr/share/eggdrop/scripts/dcc.tcl<br>loadhelp /usr/share/eggdrop/help/userinfo.help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Fri Apr 09, 2004 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-09T13:06:48-04:00</updated>

		<published>2004-04-09T13:06:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35368#p35368</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35368#p35368"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35368#p35368"><![CDATA[
Is that file system module loaded? What version of eggdrop and TCL you have? Also, haven't noticed the specific channel you want this to run on so replace this:<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $nick]} {</code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $nick] || ![string equal -nocase "#main" $chan]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 09, 2004 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-09T12:58:55-04:00</updated>

		<published>2004-04-09T12:58:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35366#p35366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35366#p35366"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35366#p35366"><![CDATA[
but still.. I don't know why, but eggdrop doesn't understand the "dccsend" command  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Fri Apr 09, 2004 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-04-09T12:48:50-04:00</updated>

		<published>2004-04-09T12:48:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35364#p35364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35364#p35364"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35364#p35364"><![CDATA[
What is the point on the while when he just asked for an ident match and send a file? Also, if you want to stop an while proc just use "break" or "continue" to continue with the loop. I honest do belive that this dcc send thing is not secure and I do not recomand you go only via idents matches. better make host masks matches or something similar. Anyway.. you wanted it so here it is.<div class="codebox"><p>Code: </p><pre><code>set sendfile "myfile.txt" bind join - * join:sendproc join:send {nick uhost hand chan} {   if {[isbotnick $nick]} {    return  }  set ident [lindex [split $uhost @] 0]  if {![regexp -all {cht-v3.1|off} $ident]} {    return  }  dccsend $::sendfile $nick }</code></pre></div>Also, be sure the file system is loaded.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Apr 09, 2004 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-09T11:26:37-04:00</updated>

		<published>2004-04-09T11:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35363#p35363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35363#p35363"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35363#p35363"><![CDATA[
I think I'm having problem: when a person joins, it claims: [19:07] TCL error [join:pub]: invalid command name "dccsend". What should I do?  And the last my question is: I want to send the file only for people having ident "cht-v3.1" and "off" but not for all? Where can I set it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Fri Apr 09, 2004 11:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-09T10:40:19-04:00</updated>

		<published>2004-04-09T10:40:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35361#p35361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35361#p35361"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35361#p35361"><![CDATA[
Yeah, use this code:<div class="codebox"><p>Code: </p><pre><code>set myfile "send.txt"bind join - * join:pubproc join:pub {nick host hand chan} {  global myfile  set read [open "myfile" r]  while {[gets $read line] != -1} {    if {[string equal -nocase "$line" "$nick"]} {      close $read      return 1    }  }  dccsend file.txt $nick  set file [open "$myfile" a]  puts $file "$nick"  close $file  close $read}</code></pre></div>This will write the nicks in a txt file and won't send the file to a nick that is written in the file <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=4667">Xpert</a> — Fri Apr 09, 2004 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-09T09:51:58-04:00</updated>

		<published>2004-04-09T09:51:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35360#p35360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35360#p35360"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35360#p35360"><![CDATA[
well, any ideas how to do for bot not to send the file for the same user?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Fri Apr 09, 2004 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-08T16:40:07-04:00</updated>

		<published>2004-04-08T16:40:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35332#p35332</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35332#p35332"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35332#p35332"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * join:pubproc join:pub {nick host hand chan} {  dccsend file.txt $nick}</code></pre></div>this is just plain on join dccsend<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Apr 08, 2004 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-05T16:11:37-04:00</updated>

		<published>2004-04-05T16:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35263#p35263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35263#p35263"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35263#p35263"><![CDATA[
absolutely right! If a user who has ident cht-v3.1 or off comes to channel main, bot sends him the file vkt.ini and puts his address into a listso if the same user comes to channel again, bot won't send him the file again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Mon Apr 05, 2004 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-04-05T16:04:55-04:00</updated>

		<published>2004-04-05T16:04:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35262#p35262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35262#p35262"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35262#p35262"><![CDATA[
Am, dont know if i understood good.But this script works like this: If user comes on channel named #main bot send him file vtk.ini ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Apr 05, 2004 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hide]]></name></author>
		<updated>2004-04-05T16:00:01-04:00</updated>

		<published>2004-04-05T16:00:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35261#p35261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35261#p35261"/>
		<title type="html"><![CDATA[need a TCL script plz help me!! ;(]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35261#p35261"><![CDATA[
Hi everybody!<br>We've have user a windows server before where ircd was running but now we upgraded to linux and I'm messed up. We used a mirc client acting as a bot which had only this single script:<br><br>ON 1:JOIN:#Main:{ <br>  if (( %send. [ $+ [ $address($nick,2) ] ] == $null ) &amp;&amp; ( cht-v3.1 isin $address )) {<br>    .dcc send -c $nick c:\vkt.ini<br>  }<br>  elseif (( %send. [ $+ [ $address($nick,2) ] ] == $null ) &amp;&amp; ( off isin $address )) {<br>    .dcc send -c $nick c:\vkt.ini<br>  }<br>}<br>on 1:FILESENT:vkt.ini:/set %send. [ $+ [ $address($nick,2) ] ] sent  <br><br><br>Could anybody of you rewrite this script into a tcl so it could run on eggdrop, please. I've tried to do it by myself but everything goes wrong because I'm lame at this. I need only this script, nothing more.. please help somebody. It would be glad to get off somebody a good responce. Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4290">hide</a> — Mon Apr 05, 2004 4:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
