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

	<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-06T18:26:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-06T18:26:36-04:00</updated>

		<published>2005-03-06T18:26:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47257#p47257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47257#p47257"/>
		<title type="html"><![CDATA[Deleting file upon leaving channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47257#p47257"><![CDATA[
no need of checking uhost, no need of -nocase switch<br><br>use global variable $botnick instead of "mybotname"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 06, 2005 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Buffy_25]]></name></author>
		<updated>2005-03-06T15:00:10-04:00</updated>

		<published>2005-03-06T15:00:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47245#p47245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47245#p47245"/>
		<title type="html"><![CDATA[Deleting file upon leaving channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47245#p47245"><![CDATA[
Hi all,<br><br>I would like to delete a specific file when my bot leaves the channel or get disconnected.<br><br>Find below the script i made for it:<div class="codebox"><p>Code: </p><pre><code>bind evnt - disconnect-server delfilebind part - * partbind kick - * kickbind sign - * signoffproc part {nick uhost hand chan arg} {if {![string match -nocase "$chan" "#channel"]} { return 0 }if {[string equal -nocase $nick "mybotname"] || [string match -nocase "*@hisuhost.com" $uhost]} {file delete /usr/home/account/eggdrop/logs/help.txt}}proc kick {nick uhost hand chan arg} {if {![string match -nocase "$chan" "#channel"]} { return 0 }if {[string equal -nocase $nick "mybotname"] || [string match -nocase "*@hisuhost.com" $uhost]} {file delete /usr/home/account/eggdrop/logs/help.txt}}proc signoff {nick uhost hand chan arg} {if {![string match -nocase "$chan" "#channel"]} { return 0 }if {[string equal -nocase $nick "mybotname"] || [string match -nocase "*@hisuhost.com" $uhost]} {file delete /usr/home/account/eggdrop/logs/help.txt}}proc delfile disconnect-server {file delete /usr/home/sparqy/eggdrop/logs/ftpusers.txt}</code></pre></div>Did I forget anything? To be sure that this file is deleted whenever my bot leaves the channel for any reason?<br><br>Thanks.<br><br>Rgds,<br>Buffy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4178">Buffy_25</a> — Sun Mar 06, 2005 3:00 pm</p><hr />
]]></content>
	</entry>
	</feed>
