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

	<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-07-30T22:19:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T22:19:52-04:00</updated>

		<published>2005-07-30T22:19:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53553#p53553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53553#p53553"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53553#p53553"><![CDATA[
Demond, many thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-30T03:21:58-04:00</updated>

		<published>2005-07-30T03:21:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53522#p53522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53522#p53522"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53522#p53522"><![CDATA[
yeah that must be it<br><br>try to truncate the $nick if necessary, using [string range]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 30, 2005 3:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T02:03:21-04:00</updated>

		<published>2005-07-30T02:03:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53520#p53520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53520#p53520"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53520#p53520"><![CDATA[
oh i think its problem with the nick length, if nick length more than 9 then it doesn't work and if nick is less than 9 then it works, so it means adduser fails due to nicklength. Do i need to change the nick length in the source?<br><br>oh log says XXX 0 in both cases even if it worked or not. i've added that log after <br>adduser $nick [maskhost [getchanhost $nick $chan]]<br><br>oh also if nick length is 12 then adduser was taking just 9.<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 2:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-30T01:59:37-04:00</updated>

		<published>2005-07-30T01:59:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53519#p53519</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53519#p53519"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53519#p53519"><![CDATA[
so what does the log say? 0 or 1?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 30, 2005 1:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T01:45:01-04:00</updated>

		<published>2005-07-30T01:45:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53518#p53518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53518#p53518"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53518#p53518"><![CDATA[
I tried another another test using putlog "XXX [adduser $nick [maskhost [getchanhost $nick $chan]]]" <br><div class="codebox"><p>Code: </p><pre><code>[01:39] XXX 0[01:39] Tcl error [ctcp:caps]: No such user. Currently: No such user.  Currently:     while executing  Currently: "setuser $nick PASS [rand 987654321]"  Currently:     (procedure "caps:perc:kick" line 24)  Currently:     invoked from within  Currently: "caps:perc:kick $nick $uhost $hand $chan $arg "  Currently:     (procedure "ctcp:caps" line 3)  Currently:     invoked from within  Currently: "ctcp:caps $_ctcpr1 $_ctcpr2 $_ctcpr3 $_ctcpr4 $_ctcpr5 $_ctcpr6"</code></pre></div>it's odd some it works fine and some time it doesn't...oh i am using eggdrop1.6.17<br><br>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 1:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T01:32:05-04:00</updated>

		<published>2005-07-30T01:32:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53517#p53517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53517#p53517"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53517#p53517"><![CDATA[
OK, demond, let me try it, thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 1:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-30T01:28:46-04:00</updated>

		<published>2005-07-30T01:28:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53516#p53516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53516#p53516"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53516#p53516"><![CDATA[
patch the script, check the result of that [adduser]:<div class="codebox"><p>Code: </p><pre><code>putlog "XXX [adduser $nick [maskhost [getchanhost $nick $chan]]]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 30, 2005 1:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T01:07:18-04:00</updated>

		<published>2005-07-30T01:07:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53515#p53515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53515#p53515"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53515#p53515"><![CDATA[
Just tried to recreate the problem with the test ip and i used caps using action command i.e. /me TESTTTTTTTTTTTTTTTTTTTTTTTTT<br><br>and i saw this message in the partyline<br>Tcl error [ctcp:caps]: No such user.<br>after seeing this error i used .set errorInfo<br> <div class="codebox"><p>Code: </p><pre><code>Currently: No such user. Currently:     while executing Currently: "setuser $nick PASS [rand 987654321]" Currently:     (procedure "caps:perc:kick" line 24) Currently:     invoked from within Currently: "caps:perc:kick $nick $uhost $hand $chan $arg " Currently:     (procedure "ctcp:caps" line 3) Currently:     invoked from within Currently: "ctcp:caps $_ctcpr1 $_ctcpr2 $_ctcpr3 $_ctcpr4 $_ctcpr5 $_ctcpr6"</code></pre></div>and these are the final codes and i've restarted the bot after loading the script.<br><div class="codebox"><p>Code: </p><pre><code>set cap_min 21set cap_per 50 bind pubm - * cap:perc:kick bind ctcp - ACTION ctcp_caps proc cap:perc:kick {nick uhost hand chan arg} {   global cap_per cap_min sbanner owner botnick   if {[string length $arg] &lt;= $cap_min} { return }   set full [string length $arg]   regsub -all {[A-Z]} $arg "" arg   set perc [expr (($full - [string length $arg]) * 100) / $full]   set banmask "*!*[string range $uhost [string first "@" $uhost] end]"   if {$perc &gt;= $cap_per} {     if {[onchan $nick $chan]} {       if {[matchattr $hand fo $chan]} {       putlog "*** ignored***********"    } elseif {[matchattr $hand Ek]} {             putserv "KICK $chan $nick :You are on auto kick..."       } elseif {[matchattr $hand F]} {       adduser $nick [maskhost [getchanhost $nick $chan]]             chattr $nick -F+Ek             newchanban $chan $banmask $owner "caps are not allowed" 60                  } else {          adduser $nick [maskhost [getchanhost $nick $chan]]             setuser $nick PASS [rand 987654321]             puthelp "PRIVMSG $chan :$nick: no caps"             chattr $nick +F    }; return 1     }   } }   proc ctcp_caps {nick uhost hand chan keyword arg} { if {[isbotnick [lindex [split $chan "@"] 0]] || [lindex [split $chan "@"] 1] != ""} {return 0}     cap:perc:kick $nick $uhost $hand $chan $arg }</code></pre></div>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-30T01:06:01-04:00</updated>

		<published>2005-07-30T01:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53514#p53514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53514#p53514"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53514#p53514"><![CDATA[
well it's still less than 27 lines from the proc's beginning to that [setuser] <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> anyway<br><br>are you absolutely sure that there is [adduser] right before [setuser]? since I don't see how could [setuser] fail, provided the user has been just added (or already there)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 30, 2005 1:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-30T00:39:23-04:00</updated>

		<published>2005-07-30T00:39:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53512#p53512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53512#p53512"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53512#p53512"><![CDATA[
demond, yeap this is the whole script, actually i have remove some comments and extra codes.<br><br>here is the latest errorinfo with the above codes and i've removed all other scripts as well, only this one is loaded.<br><blockquote class="uncited"><div>Currently: No such user.<br>Currently:     while executing<br>Currently: "setuser $nick PASS [rand 987654321]"<br>Currently:     (procedure "caps:perc:kick" line 27)<br>Currently:     invoked from within<br>Currently: "caps:perc:kick $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</div></blockquote>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jul 30, 2005 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-30T00:10:14-04:00</updated>

		<published>2005-07-30T00:10:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53511#p53511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53511#p53511"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53511#p53511"><![CDATA[
hmm interesting, that proc is less than 37 lines long but the error traceback points at line 37... are you sure you posted the whole script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jul 30, 2005 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-29T22:32:39-04:00</updated>

		<published>2005-07-29T22:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53503#p53503</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53503#p53503"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53503#p53503"><![CDATA[
Yeah, sometime i see error message that "No such user" but user is on the channel. I have these codes.<br><div class="codebox"><p>Code: </p><pre><code>set cap_min 21set cap_per 50 bind pubm - * cap:perc:kick bind ctcp - ACTION ctcp_caps proc cap:perc:kick {nick uhost hand chan arg} {   global cap_per cap_min sbanner owner botnick  if {[string length $arg] &lt;= $cap_min} { return }   set full [string length $arg]   regsub -all {[A-Z]} $arg "" arg   set perc [expr (($full - [string length $arg]) * 100) / $full]  set banmask "*!*[string range $uhost [string first "@" $uhost] end]"   if {$perc &gt;= $cap_per} {    if {[onchan $nick $chan]} {      if {[matchattr $hand fo $chan]} {putlog "*** ignored***********"} elseif {[matchattr $hand Ek]} {            putserv "KICK $chan $nick :You are on auto kick..."      } elseif {[matchattr $hand F]} {adduser $nick [maskhost [getchanhost $nick $chan]]            chattr $nick -F+Ek            newchanban $chan $banmask $owner "caps are not allowed" 60             } else {adduser $nick [maskhost [getchanhost $nick $chan]]            setuser $nick PASS [rand 987654321]            puthelp "PRIVMSG $chan :$nick: no caps"            chattr $nick +F}; return 1    }  }} proc ctcp_caps {nick uhost hand chan keyword arg} {if {[isbotnick [lindex [split $chan "@"] 0]] || [lindex [split $chan "@"] 1] != ""} {return 0}    cap:perc:kick $nick $uhost $hand $chan $arg }</code></pre></div><div class="codebox"><p>Code: </p><pre><code>now .set errorInfo results Currently: No such user. Currently:     while executing Currently: "setuser $nick PASS [rand 987654321]" Currently:     (procedure "caps:perc:kick" line 37) Currently:     invoked from within Currently: "caps:perc:kick $_pubm1 $_pubm2 $_pubm3 $_pubm4 $_pubm5"</code></pre></div>Thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Fri Jul 29, 2005 10:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-29T00:26:54-04:00</updated>

		<published>2005-07-29T00:26:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53438#p53438</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53438#p53438"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53438#p53438"><![CDATA[
are you sure the error is on that [setuser] immediately after [adduser]? with those 2 lines, even if [adduser] fails, [setuser] should succeed on the already existing user $nick<br><br>post the whole script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jul 29, 2005 12:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-07-28T22:17:47-04:00</updated>

		<published>2005-07-28T22:17:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53435#p53435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53435#p53435"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53435#p53435"><![CDATA[
HI Sir_Fz, I get this<br> <div class="codebox"><p>Code: </p><pre><code>Currently: No such user. Currently:     while executing Currently: "setuser $nick PASS [rand 987654321]" Currently:     (procedure "cap:perc:kick" line 37) Currently:     invoked from within Currently: "cap:perc:kick $nick $uhost $hand $chan $arg " Currently:     (procedure "ctcp_caps" line 4) Currently:     invoked from within Currently: "ctcp_caps $_ctcpr1 $_ctcpr2 $_ctcpr3 $_ctcpr4 $_ctcpr5 $_ctcpr6"</code></pre></div>I've some extra codes in the script to use some userdefine flags etc<br><div class="codebox"><p>Code: </p><pre><code>if {$perc &gt;= $cap_per} {   -   -   -   adduser $nick [maskhost [getchanhost $nick $chan]]   setuser $nick PASS [rand 987654321]   puthelp "PRIVMSG $chan :$nick: no caps."   chattr $nick +F</code></pre></div>it seems error on this line  -&gt; setuser $nick PASS [rand 987654321]<br><br>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Thu Jul 28, 2005 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-27T07:21:49-04:00</updated>

		<published>2005-07-27T07:21:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=53372#p53372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=53372#p53372"/>
		<title type="html"><![CDATA[caps script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=53372#p53372"><![CDATA[
<blockquote class="uncited"><div>Thanks, Sir_Fz.<br><br>This happens once in a while, so should I type .set errorInfo after i see that error? or <br><br><br>thanks</div></blockquote>Just type it, and if it tells you "you need help" then add a "#" before the line that says<blockquote class="uncited"><div>unbind dcc n tcl *dcc:tcl</div></blockquote>and the line after it as well (for the .set dcc command)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 27, 2005 7:21 am</p><hr />
]]></content>
	</entry>
	</feed>
