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

	<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>2006-11-06T21:48:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-11-06T21:48:26-04:00</updated>

		<published>2006-11-06T21:48:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67811#p67811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67811#p67811"/>
		<title type="html"><![CDATA[Error in adduser setup?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67811#p67811"><![CDATA[
Just a question, why do you try to execute the return-code form adduser and deluser?<br>And this $head-variable you have in that putlog; it's not defined anywhere in this code, and it's not imported from globalspace<br><br>Also, would you mind including the binds you've used?<br><br><em class="text-italics">edit:</em> Had a closer look at that adduser code..<br>To be honest, I'm not sure what you try to accomplish with all those nested commands<br><br>A simple example on how to do it would be something like this:<div class="codebox"><p>Code: </p><pre><code>proc battle:adddj {nick host hand chan text} { set txt [split $text]; set handle [lindex $txt 0]; hostmask [lindex $txt 1] if {[adduser $handle $hostmask]} {  chattr $handle fD  putlog "$nick added new dj: $handle with hostmask: $hostmask" }}proc battle:removedj {nick host hand chan text} { if {[deluser $text]} {  putlog "$nick removed dj: $text" }}bind pub n @adduser battle:adddjbind pub n @deluser battle:removedj</code></pre></div>Of course you don't need to set txt, handle or hostmask; tho I find it makes the code somewhat more easy to read<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Nov 06, 2006 9:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nara]]></name></author>
		<updated>2006-11-06T21:20:50-04:00</updated>

		<published>2006-11-06T21:20:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67810#p67810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67810#p67810"/>
		<title type="html"><![CDATA[Error in adduser setup?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67810#p67810"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc battle:adddj { nick host hand chan text } {[adduser [join [lindex [split $text] 0] [join [lrange [split $text] 1 end]]] [chattr [join [lindex [split $text] 0] fD]putlog "$head $nick added new dj: [join [lindex [split $text] 0] with hostmask: [join [lrange [split $text] 1 end]]]"}proc battle:removedj { nick host hand chan text } {[deluser $text]putlog "$head $nick removed dj: $text"}</code></pre></div>It refuses to add them - no errors are returned, but the person is not added. Here's the format:<br><br>@adduser HANDLE HOSTMASK<br><br>EX:<br>@adduser Nara *!*@Nara.*<br><br>~Nara<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8006">Nara</a> — Mon Nov 06, 2006 9:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
