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

	<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-05-18T04:05:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CoMMy]]></name></author>
		<updated>2004-05-18T04:05:40-04:00</updated>

		<published>2004-05-18T04:05:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36425#p36425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36425#p36425"/>
		<title type="html"><![CDATA[Help With Nick, Keepnick, And Bind Botnick. All Included.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36425#p36425"><![CDATA[
Well I Have A Problem With This. I Wrote A Public Command That Will Change The Bots Nickname By Setting keep-nick to "0" and binding the new botnick to the proc.<br><br>This is the problem.<br><br>[10:57:02] * EggDrop is now known as Newnick<br>[10:57:03] * Newnick is now known as EggDrop<br><br>Here is the code:<br><div class="codebox"><p>Code: </p><pre><code>#Start Of nickproc epub_nick {nick host handle chan testes} {global botnick cmdchar owner keepnick keep-nick personset person [lindex $testes 0]if {[matchattr $handle n] &amp;&amp; ([string match -nocase "*$handle*" "$owner"])} {if {$person == ""} {putserv "NOTICE $nick :Usage: ${cmdchar}nick &lt;new nick&gt;." -nextreturn 0 }unbind pub - ${botnick} epub_commandcatch {unbind pub - ${botnick} epub_command}if {${keep-nick} != "0"} {keepnick 0 }utimer 3 { putserv "NICK :$person" } return 1 }}#End Of nick#Keepnick Procproc keepnick { keeparg } {global configif {[info exists keeparg]} {set fp [open $config r]set lines [split [read $fp] \n]close $fpset idx [lsearch -glob $lines "set keep-nick *"]set newline [list set keep-nick $keeparg]if {$idx != -1} {  set lines [lreplace $lines $idx $idx $newline]} else {  lappend lines $newline}set fp [open $config w]puts -nonewline $fp [join $lines \n]close $fp }rehash }#End proc</code></pre></div>Can you help please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3555">CoMMy</a> — Tue May 18, 2004 4:05 am</p><hr />
]]></content>
	</entry>
	</feed>
