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

	<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>2002-09-25T11:46:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-25T11:46:36-04:00</updated>

		<published>2002-09-25T11:46:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11372#p11372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11372#p11372"/>
		<title type="html"><![CDATA[anyone who can help me with this.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11372#p11372"><![CDATA[
All you need to know is in file called doc/tcl-commands.doc. Look for bind types.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Wed Sep 25, 2002 11:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-24T15:17:11-04:00</updated>

		<published>2002-09-24T15:17:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11321#p11321</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11321#p11321"/>
		<title type="html"><![CDATA[anyone who can help me with this.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11321#p11321"><![CDATA[
# Where is your file directory?<br>set get_dir "/home/forc/files"<br><br># Which files/directories should I not search for/in?<br>set get_nfile "incoming readme.txt"<br><br># Which channels shall the commands work on?<br>set get_chans "#warez"<br><br>###############################################################<br>## Do not edit below here unless you know what you are doing ##<br>###############################################################<br><br>bind pub - !get GET:pub_get<br>bind pub +v|+v !send GET:pub_send2<br><br>proc filesearch {file dir} {<br>  set file [string tolower $file]<br>  return [searchdat $file $dir]<br>}<br><br>proc searchdat {file dir} {<br>  if {[string range $dir end end] != "/"} {<br>    append dir "/"<br>  }<br>  set r ""<br>  set l [glob -nocomplain $dir*]<br>  foreach f $l {<br>    if {[file isdirectory $f]} {<br>      set r [concat $r [searchdat $file $f]]<br>    } elseif {[file isfile $f]} {<br>      if {[string tolower [file tail $f]] == $file} {<br>        lappend r $f<br>      }<br>    }<br>  }<br>  return $r<br>}<br><br>proc chncheck {chan check} {<br>  foreach c $check {<br>    if {$chan == $c} {<br>      return 1<br>    }<br>  }<br>  return 0<br>}<br><br>proc GET:pub_get {nick host hand chan text} {<br>  global get_dir get_chans get_nfile<br>  if {[chncheck $chan $get_chans]} {<br>    set file [lindex $text 0]<br>    if {![string match "*[string tolower $file]*" "[string tolower [lrange $get_nfile 0 end]]"]} {<br>      set results [filesearch $file $get_dir]<br>    } {<br>      puthelp "NOTICE $nick :Could not send you $file, because the file has been disabled."<br>      return 1<br>    }<br>    if {[llength $results] == 0} {<br>      puthelp "NOTICE $nick :Didn't find any results for $file"<br>    } {<br>      set sent [dccsend [lindex $results 0] $nick]<br>      if {$sent == 0} {<br>        puthelp "NOTICE $nick :Sending You the fileserver script $file did you type /dccallow +bootdisk also? if not do that"<br>      } elseif {$sent == 1} {<br>        puthelp "NOTICE $nick :DCC Tables are full. Try back in a few minutes."<br>      } elseif {$sent == 2} {<br>        puthelp "NOTICE $nick :For some strange reason the file does not exist."<br>      } elseif {$sent == 4} {<br>        puthelp "NOTICE $nick :Your file was queued for a later transfer."<br>      } else {<br>        puthelp "NOTICE $nick :An undefined error occurred during the transfer."<br>      }<br>    }<br>  }<br>  return 1<br>}<br><br>proc GET:pub_send2 {nick host hand chan text} {<br>  global get_dir get_chans get_nfile<br>  if {[chncheck $chan $get_chans]} {<br>    set g2nick [lindex $text 0]<br>    set file [lindex $text 1]<br>    if {![string match "*[string tolower $file]*" "[string tolower [lrange $get_nfile 0 end]]"]} {<br>      set results [filesearch $file $get_dir]<br>    } {<br>      puthelp "NOTICE $nick :Could not send you $file, because the file has been disabled."<br>      return 1<br>    }<br>    if {[llength $results] == 0} {<br>      puthelp "NOTICE $nick :Didn't find any results for $file"<br>    } else {<br>      set sent [dccsend [lindex $results 0] $g2nick]<br>      puthelp "NOTICE $g2nick :$nick requested for me to send you $file"<br>      if {$sent == 0} {<br>        puthelp "NOTICE $nick :Sending $g2nick $file"<br>        puthelp "NOTICE $g2nick :Sending you $file"<br>      } elseif {$sent == 1} {<br>        puthelp "NOTICE $g2nick :DCC Tables are full. You cannot receive the file."<br>        puthelp "NOTICE $nick :DCC Tables are full. Could not send $g2nick $file"<br>      } elseif {$sent == 2} {<br>        puthelp "NOTICE $g2nick :For some strange reason the file does not exist."<br>        putserv "NOTICE $nick :The file does not exist."<br>      } elseif {$sent == 3} {<br>        puthelp "NOTICE $nick :Had trouble connecting to $g2nick"<br>      } elseif {$sent == 4} {<br>        puthelp "NOTICE $g2nick :Your file was queued for a later transfer."<br>        puthelp "NOTICE $nick :$file was queued and will be transfered later."<br>      } else {<br>        puthelp "PRIVMSG $nick :An undefined error occurred during the transfer."<br>      }<br>    }<br>  }<br>  return 1<br>}<br><br><br>###################################<br><br>okey there is the script that o downloaded, its damn good and it works, but i want to add something and i don't know a damn about how to script, can someone tell me how to make the script say in a channel like "File succefull sent to $nick" after the user have downloaded the file from my eggdrop..<br><br>thank ya all..<p>Statistics: Posted by Guest — Tue Sep 24, 2002 3:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
