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

	<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-10-28T10:25:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-28T10:25:35-04:00</updated>

		<published>2005-10-28T10:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56883#p56883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56883#p56883"/>
		<title type="html"><![CDATA[Help Modifying]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56883#p56883"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># File set bncinfofile "scripts/bncinfo.txt" # Information set bncinfo {name email password} bind pub n !bncadd bnc:info:add bind pub n !bncget bnc:info:get bind pub n !bncdel bnc:info:delproc bnc:info:add {nick uhost hand chan arg} {  global bncinfofile bncinfo   set c 0   foreach i $bncinfo {    append info "$i: [lindex [split $arg] $c] "    incr c   }   puts [set f [open $bncinfofile a]] $info   close $f }   proc bnc:info:get {nick uhost hand chan arg} {  global bncinfofile  foreach i [split [read [set f [open $bncinfofile]]] \n][close $f] {   if {[string equal -nocase [lindex $i 1] [lindex [split $arg] 0]]} {    puthelp "notice $nick :$i" ; set found 1    break   }  }  if {![info exists found]} {   puthelp "notice $nick :[lindex [split $arg] 0] was not found in the DB."  } }proc bnc:info:del {nick uhost hand chan arg} { global bncinfofile set name [lindex [split $arg] 0] set i 0 foreach user [split [read [set inf [open $bncinfofile]]] "\n"][close $inf] {  if {[string equal -nocase [lindex $user 1] $name]} { set f 1 ; break }  incr i } if {[info exists f]} {  replaceLines $bncinfofile $i $i  puthelp "notice $nick :Deleted $name from db." } {  puthelp "notice $nick :$name was not found in db." }}# proc by userproc replaceLines {args} {  if {[llength $args]&gt;=3} {   foreach {file start end} $args break   set cmd [list lreplace [split [read [set f [open $file r]]] \n] $start $end]   close $f   if {[llength $args]&gt;3} {lappend cmd [lindex $args 3]}   puts -nonewline [set f [open $file w]] [join [eval $cmd] \n]   close $f  } {   error "wrong # args: should be \"[lindex [info level 0] 0] file start end ?replacement?\""  } }</code></pre></div>For deleting use: <strong class="text-strong">!bncdel &lt;name&gt;</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Oct 28, 2005 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Swinder]]></name></author>
		<updated>2005-10-24T10:37:56-04:00</updated>

		<published>2005-10-24T10:37:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56791#p56791</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56791#p56791"/>
		<title type="html"><![CDATA[Help Modifying]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56791#p56791"><![CDATA[
Hi this script was made for another user on this forum, i was wondering if someone would be so kind to make it available for public usage so it wouldn't have to be msg'd to the eggdrop, also a possible delete function? The delete function would delete the whole users line of information, once again this would publicly accessible<div class="codebox"><p>Code: </p><pre><code># Fileset bncinfofile "scripts/bncinfo.txt"# Informationset bncinfo {name email password}bind msg n bncadd bnc:info:addbind msg n bncget bnc:info:getproc bnc:info:add {nick uhost hand arg} { global bncinfofile bncinfo  set c 0  foreach i $bncinfo {   append info "$i: [lindex [split $arg] $c] "   incr c  }  puts [set f [open $bncinfofile a]] $info  close $f} proc bnc:info:get {nick uhost hand arg} { global bncinfofile foreach i [split [read [set f [open $bncinfofile]]] \n][close $f] {  if {[string equal -nocase [lindex $i 1] [lindex [split $arg] 0]]} {   puthelp "notice $nick :$i" ; set found 1   break  } } if {![info exists found]} {  puthelp "notice $nick :[lindex [split $arg] 0] was not found in the DB." }}</code></pre></div>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6579">Swinder</a> — Mon Oct 24, 2005 10:37 am</p><hr />
]]></content>
	</entry>
	</feed>
