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

	<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-12-23T00:29:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-12-23T00:29:36-04:00</updated>

		<published>2005-12-23T00:29:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58606#p58606</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58606#p58606"/>
		<title type="html"><![CDATA[problem with setuser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58606#p58606"><![CDATA[
Laughs @ me,  Sir fz, i fixed it long back and never bothered to change it here. Ty anyways <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=6257">nANDu</a> — Fri Dec 23, 2005 12:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-22T12:49:55-04:00</updated>

		<published>2005-12-22T12:49:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58587#p58587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58587#p58587"/>
		<title type="html"><![CDATA[problem with setuser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58587#p58587"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![validuser $nick]} {      setuser $nick XTRA sc$chan      putlog "set user $nick - [getuser $nick XTRA sc$chan]"}</code></pre></div>This means, if the user does <strong class="text-strong">not</strong> exist then setuser....etc Does that make any sense to you?<br><br>You need to do it vise-versa, if the user exists then setuser ...etc If you want to add the user if it doesn't exist then check out the <strong class="text-strong">adduser</strong> command in Tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Dec 22, 2005 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-12-22T08:08:09-04:00</updated>

		<published>2005-12-22T08:08:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58582#p58582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58582#p58582"/>
		<title type="html"><![CDATA[problem with setuser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58582#p58582"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm -|- * pubm:counterproc pubm:counter {nick uhost hand chan args} {if {![validuser $nick]} {setuser $nick XTRA sc$chan            putlog "set user $nick - [getuser $nick XTRA sc$chan]"}if {([isop $nick $chan]) || ([isvoice $nick $chan])} {            putlog "pubm counter hand is $hand for XTRA sc$chan = [getuser $hand XTRA sc$chan]"set cc [getuser $hand XTRA sc$chan]set ct [getuser $hand XTRA st$chan]if {$cc == ""} {set cc 0}if {$ct == ""} {set ct 0}if {[expr [unixtime] - $ct] &lt; 2} {return 0}incrchanactivity $chanincr cc      putlog "pubm counter incremented user: $nick $hand $cc"setuser $nick XTRA sc$chan $ccsetuser $nick XTRA st$chan [unixtime]chattr $nick -|+T $chan}}</code></pre></div><blockquote class="uncited"><div>Still the same error:<br>&lt;Testb0t&gt; [17:06] Tcl error [pubm:counter]: No such user</div></blockquote>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Thu Dec 22, 2005 8:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-12-22T02:14:33-04:00</updated>

		<published>2005-12-22T02:14:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58569#p58569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58569#p58569"/>
		<title type="html"><![CDATA[problem with setuser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58569#p58569"><![CDATA[
If it's not a user tham has 'b' flag then the proc continues normaly, so you will have to add a 'validuser $hand' statement in or before the '  if {([isop $nick $chan]) || ([isvoice $nick $chan])} { ' line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Dec 22, 2005 2:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nANDu]]></name></author>
		<updated>2005-12-22T00:16:26-04:00</updated>

		<published>2005-12-22T00:16:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58565#p58565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58565#p58565"/>
		<title type="html"><![CDATA[problem with setuser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58565#p58565"><![CDATA[
I get <strong class="text-strong">Tcl error [pubm:counter]: No such user.</strong> even though i've setuser. Can't understand, tell me wht the problem is?<br><div class="codebox"><p>Code: </p><pre><code>bind pubm -|- * pubm:counter proc pubm:counter {nick uhost hand chan args} {   if {[matchattr $hand b]} {     chattr $hand -|-T $chan     return 1   }   if {([isop $nick $chan]) || ([isvoice $nick $chan])} {     putlog "pubm counter hand is $hand for XTRA sc$chan - [getuser $hand XTRA sc$chan]"     if {$hand == "*"} {       setuser $nick XTRA sc$chan 1      setuser $nick XTRA st$chan [unixtime]       chattr $hand -|+T $chan       putlog "pubm counter setting user $nick st$chan for the first time"       return     }     set cc [getuser $hand XTRA sc$chan]     set ct [getuser $hand XTRA st$chan]     if {$cc == ""} {set cc 0}     if {$ct == ""} {set ct 0}     if {[expr [unixtime] - $ct] &lt; 2} {       return 0     }     incr cc     putlog "pubm counter incremented user: $nick $hand $cc"     setuser $hand XTRA sc$chan $cc     setuser $hand XTRA st$chan [unixtime]   } } </code></pre></div><blockquote class="uncited"><div>&lt;Testb0t&gt; [09:00] pubm counter hand is * - <br>&lt;Testb0t&gt; [09:00] Tcl error [pubm:counter]: No such user.<br>&lt;Testb0t&gt; [09:00] pubm counter hand is * - <br>&lt;Testb0t&gt; [09:00] Tcl error [pubm_counter]: No such user.<br>&lt;Testb0t&gt; [09:00] &lt;test-counter&gt; hello<br>--<br>&lt;Testb0t&gt; [09:03] #nANDu# set errorInfo<br>&lt;Testb0t&gt; Currently: No such user.<br>&lt;Testb0t&gt; Currently:     while executing<br>&lt;Testb0t&gt; Currently: "setuser $nick XTRA sc$chan 0"<br>&lt;Testb0t&gt; Currently:     (procedure "pubm:counter" line 12)<br>&lt;Testb0t&gt; Currently:     invoked from within<br>&lt;Testb0t&gt; Currently: "pubm:counter $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6257">nANDu</a> — Thu Dec 22, 2005 12:16 am</p><hr />
]]></content>
	</entry>
	</feed>
