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

	<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-06-14T14:54:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T14:54:46-04:00</updated>

		<published>2005-06-14T14:54:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50798#p50798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50798#p50798"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50798#p50798"><![CDATA[
Thanks dude, it works great, thanks again ;p !!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T14:50:52-04:00</updated>

		<published>2005-06-14T14:50:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50797#p50797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50797#p50797"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50797#p50797"><![CDATA[
Thanks dude, it works great, thanks again ;p !!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T14:47:48-04:00</updated>

		<published>2005-06-14T14:47:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50796#p50796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50796#p50796"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50796#p50796"><![CDATA[
balance your braces, make sure you use [hand2nick] correctly, use proper indentation throughout your code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 2:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-06-14T14:43:50-04:00</updated>

		<published>2005-06-14T14:43:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50795#p50795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50795#p50795"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50795#p50795"><![CDATA[
Err your script was a complete and utter mess. My 1 year old could do a better job.<br><br>If you use indentations properly you would see where you have gone wrong and you aren't using <em class="text-italics">else</em> properly.<br><br>I didn't check your putquick lines but the script should not crash now.<br><br>try this.<div class="codebox"><p>Code: </p><pre><code>bind pub o|f !userlist user_listproc user_list {nick uhost hand chan text} {    if { [userlist |amnovf $chan] == "" } {        putserv "NOTICE $nick :No users found in my userlist for $chan"    } else {        putquick "NOTICE $nick :Userlist for $chan"        foreach user [userlist |amnovf $chan] {            set usersnick [hand2nick $user]            if { $usersnick == "" } {                putquick "NOTICE $nick :(( Handle: $user || Nickname: Offline, or not in any of the bots channels. || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"            } else {                  putquick "NOTICE $nick :(( Handle: $user || Nickname: $usersnick || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"            }        }        putquick "NOTICE $nick :End of list."    }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Tue Jun 14, 2005 2:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T14:36:35-04:00</updated>

		<published>2005-06-14T14:36:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50794#p50794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50794#p50794"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50794#p50794"><![CDATA[
&lt;[-Guard-]&gt; [19:35] Tcl error in file 'eggdrop.conf':<br>&lt;[-Guard-]&gt; [19:35] invalid command name "}"<br>&lt;[-Guard-]&gt;     while executing<br>&lt;[-Guard-]&gt; "}"<br>&lt;[-Guard-]&gt;     (file "scripts/userlist.tcl" line 21)<br>&lt;[-Guard-]&gt;     invoked from within<br>&lt;[-Guard-]&gt; "source scripts/userlist.tcl"<br>&lt;[-Guard-]&gt;     (file "eggdrop.conf" line 1353)<br>&lt;[-Guard-]&gt; [19:35] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<br>-<br>DCC session closed<br><br>Thats the error i get<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T14:30:37-04:00</updated>

		<published>2005-06-14T14:30:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50793#p50793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50793#p50793"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50793#p50793"><![CDATA[
that's not a crash dude<br><br>remove your script from bot's config, start your bot, log in on party-line, load your script (.tcl source scripts/yourscript.tcl), obtain error traceback (.set errorInfo)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T14:27:12-04:00</updated>

		<published>2005-06-14T14:27:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50792#p50792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50792#p50792"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50792#p50792"><![CDATA[
[19:25] Tcl error in file 'eggdrop.conf':<br>[19:25] invalid command name "}"<br>    while executing<br>"}"<br>    (file "scripts/userlist.tcl" line 21)<br>    invoked from within<br>"source scripts/userlist.tcl"<br>    (file "eggdrop.conf" line 1348)<br>[19:25] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T14:12:52-04:00</updated>

		<published>2005-06-14T14:12:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50790#p50790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50790#p50790"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50790#p50790"><![CDATA[
crashes? care to post a log and DEBUG file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T14:07:41-04:00</updated>

		<published>2005-06-14T14:07:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50789#p50789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50789#p50789"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50789#p50789"><![CDATA[
Hmm, i got past that error now, something else is wrong, i cant seem to find the error because the eggdrop crashes before i have a chance<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|f !userlist user_list proc user_list {nick uhost hand chan text} { if {[userlist |amnovf $chan] == ""} { putserv "NOTICE $nick :No users found in my userlist for $chan " return 0 } putquick "NOTICE $nick :Userlist for $chan " foreach user [userlist |amnovf $chan] {set usersnick [hand2nick $user]if {[$usersnick == ""} {putquick "NOTICE $nick :(( Handle: $user || Nickname: Offline, or not in any of the bots channels. || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"}} else {if {[$usersnick != ""} {  putquick "NOTICE $nick :(( Handle: $user || Nickname: $usersnick || Host(s): [getuser $user HOSTS] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"}}putquick "NOTICE $nick :End of list." }}putlog "Userlist.tcl By Tosser^^ Loaded"</code></pre></div>I think it maybe a bracket error, please help ;p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T13:59:05-04:00</updated>

		<published>2005-06-14T13:59:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50788#p50788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50788#p50788"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50788#p50788"><![CDATA[
<blockquote class="uncited"><div>Hmm, im not using the $usersnick var, im using $user so i should think thats not causing the error ...</div></blockquote>you don't even know <strong class="text-strong">your</strong> code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><div class="codebox"><p>Code: </p><pre><code>if {[set usersnick [hand2nick $user]] != ""} putquick "NOTICE $nick :(( Handle: $user || Nickname: $usersnick || Host(s): [getuser $user "hosts"] || Channel Flags: +[lindex [split [chattr $user $chan] |] 1] ))"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T13:56:01-04:00</updated>

		<published>2005-06-14T13:56:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50787#p50787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50787#p50787"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50787#p50787"><![CDATA[
move those [getuser] and [chattr] out of the notice and use .set errorInfo to obtain full backtrace of the error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T13:52:23-04:00</updated>

		<published>2005-06-14T13:52:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50786#p50786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50786#p50786"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50786#p50786"><![CDATA[
Hmm, im not using the $usersnick var, im using $user so i should think thats not causing the error ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 1:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-14T13:31:11-04:00</updated>

		<published>2005-06-14T13:31:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50784#p50784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50784#p50784"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50784#p50784"><![CDATA[
nope, it's not that<div class="codebox"><p>Code: </p><pre><code>getuser $user "HOSTS"</code></pre></div>is 100% equivalent to <div class="codebox"><p>Code: </p><pre><code>getuser $user HOSTS</code></pre></div>the bug is most likely in the usage of [hand2nick], which may return a list - and you incorrectly assume it always returns a single nick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jun 14, 2005 1:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-06-14T13:25:18-04:00</updated>

		<published>2005-06-14T13:25:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50783#p50783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50783#p50783"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50783#p50783"><![CDATA[
ok, thanks Sir_fz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Tue Jun 14, 2005 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-14T13:21:09-04:00</updated>

		<published>2005-06-14T13:21:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50782#p50782</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50782#p50782"/>
		<title type="html"><![CDATA[getuser error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50782#p50782"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>getuser $user HOSTS</code></pre></div>or <div class="codebox"><p>Code: </p><pre><code>getuser $user "HOSTS"</code></pre></div>should work fine.<br><br>PS: Make sure you don't have the line split with some enter by mistake after copy paste.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 14, 2005 1:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
