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

	<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-11-30T00:34:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-30T00:34:59-04:00</updated>

		<published>2005-11-30T00:34:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57822#p57822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57822#p57822"/>
		<title type="html"><![CDATA[dumbasses tcl add/list/del]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57822#p57822"><![CDATA[
talk about rightly named scripts <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Nov 30, 2005 12:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-11-27T17:27:18-04:00</updated>

		<published>2005-11-27T17:27:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57758#p57758</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57758#p57758"/>
		<title type="html"><![CDATA[dumbasses tcl add/list/del]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57758#p57758"><![CDATA[
Hi,<br><br>I have dumbasses.tcl but it can only add ant list dumbasses. <br>Can anyone make that tcl could delete nick from the file. If nick isn't in the dumbasses file bot sents msg that he is not dumbass.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><div class="codebox"><p>Code: </p><pre><code>set quoteitpubprefix "!"set quoteitfile "quoteit.data"# 0 = Channel# 1 = Noticeset quoteitvianotice "1"if { ![info exists toolbox_loaded] } { source scripts/alltools.tcl }bind pub - [string trim $quoteitpubprefix]dumbasses quoteit:pub:dumbassesbind pub G|G [string trim $quoteitpubprefix]dumbass quoteit:pub:dumbassproc quoteit:pub:dumbass {nick uhost hand chan arg} { global quoteitfile quoteitvianotice set quotes "" if { [file exists $quoteitfile] } { set file [open $quoteitfile r]  } else {  if { $quoteitvianotice == 0 } { putmsg $chan "$quoteitfile does not exist. You'll need to add quotes to the database first by typing \002!dumbass &lt;nick&gt;\002" }  if { $quoteitvianotice == 1 } { putnotc $nick "$quoteitfile does not exist. You'll need to add quotes to the database first by typing \002!dumbass &lt;nick&gt;\002" }  return 0 } while { ![eof $file] } {  set quote [gets $file]  if { $quote != "" } {   set quotes [linsert $quotes end $quote]  } } close $file set row [rand [llength $quotes]]   set quote [list $quotes]  if { $quote != "" } {  if { $quoteitvianotice == 0 } {   putmsg $chan "Dumbasses: $quote"  }  if { $quoteitvianotice == 1 } {   putnotc $nick "Dumbasses: $quote"  }  return 1 }}proc quoteit:pub:dumbasses {nick uhost hand chan arg} { global quoteitfile if { $arg == "" } {  putnotc $nick "Usage: !dumbass &lt;nick&gt;"  return 0 } set file [open $quoteitfile a] puts $file "$arg" close $file putmsg $chan "{$arg dumbassed}" return 1}putlog "*** dumbasses.tcl loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Sun Nov 27, 2005 5:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
