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

	<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>2003-06-11T11:53:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kevie]]></name></author>
		<updated>2003-06-11T11:53:48-04:00</updated>

		<published>2003-06-11T11:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21675#p21675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21675#p21675"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21675#p21675"><![CDATA[
Ok I've tried what Papillon said and got certain errors <br>1) [23:44] [gucci] [23:45] * Duplicate user record 'gucci'!<br>    [23:44] [gucci] [23:45] Userfile loaded, unpacking...<br>    [23:44] [gucci] [23:45] (!) I have an user record, but without +b<br>2) [23:46] [gucci] [23:47] Tcl error [voiceUser]: invalid command  name "Â "<br><div class="codebox"><p>Code: </p><pre><code>## Settings set line "*Fserve Active*" set channel "#E-hub" ## Binds bind pubm - "$line" voiceUser bind time - "00 * * * *" time_proc bind time - "30 * * * *" time_proc ## Code proc voiceUser {nick uhost hand channel rest} {   putserv "MODE $channel +v :$nick"   saveUser $nick $uhost $hand $channel $rest   return }proc time_proc {min hour day month year} {check_word} proc check_word {} { if {![botisop $::channel]} { putlog "I'm not oped in $::channel." return 0 } foreach user [chanlist $::channel] { if {[isvoice $user $::channel]} { set hand [nick2hand $user] if {[matchattr $hand S]} { chattr $hand -S return } pushmode $::channel -v $user puthelp "NOTICE $user :you've been devoiced for not serving." } } } adduser $nick chattr [nick2hand $nick] +S }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3312">kevie</a> — Wed Jun 11, 2003 11:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T05:01:17-04:00</updated>

		<published>2003-06-11T05:01:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21640#p21640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21640#p21640"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21640#p21640"><![CDATA[
I'm not in that list <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 5:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T04:58:43-04:00</updated>

		<published>2003-06-11T04:58:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21639#p21639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21639#p21639"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21639#p21639"><![CDATA[
tsk... that's what they all say  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T04:57:22-04:00</updated>

		<published>2003-06-11T04:57:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21638#p21638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21638#p21638"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21638#p21638"><![CDATA[
Oups, yes, forgot to remove them <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T04:48:34-04:00</updated>

		<published>2003-06-11T04:48:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21636#p21636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21636#p21636"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21636#p21636"><![CDATA[
if you insist on using list on it (which really is not needed) the drop the "" quotes, or else saveUser will be called with just one argument <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-11T04:57:42-04:00</updated>

		<published>2003-06-11T04:44:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21635#p21635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21635#p21635"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21635#p21635"><![CDATA[
better [list saveUser $nick $uhost $hand $channel $rest]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Jun 11, 2003 4:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-11T04:31:13-04:00</updated>

		<published>2003-06-11T04:31:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21633#p21633</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21633#p21633"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21633#p21633"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$line" voiceUser bind time - "00 * * * *" time_proc bind time - "30 * * * *" time_proc bind pubm - "$line" saveUser</code></pre></div>no need to have two equal pubm binds<div class="codebox"><p>Code: </p><pre><code>bind pubm - "$line" voiceUser bind time - "00 * * * *" time_proc bind time - "30 * * * *" time_proc </code></pre></div>just call the saveUser proc from within the voiceUser proc<div class="codebox"><p>Code: </p><pre><code>proc voiceUser {nick uhost hand channel rest} {   putserv "MODE $channel +v :$nick"   saveUser $nick $uhost $hand $channel $rest  return }</code></pre></div><div class="codebox"><p>Code: </p><pre><code>adduser $nick chattr $nick +S </code></pre></div>$nick is not the same as the saved handle on the bot.<br> when you add the user and the nick is to long, the eggdrop will "cut" the nick.<br>use this to get the correct handle<div class="codebox"><p>Code: </p><pre><code>adduser $nick chattr [nick2hand $nick] +S </code></pre></div>and finally, conserning the timing of devoicing... it has to do with the use of the time bind, it will not wait 30 mins to check the users. It executes every whole and half hour. ie.. 10.00, 10.30, 11.00 .... etc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Jun 11, 2003 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ReaLz]]></name></author>
		<updated>2003-06-11T01:19:09-04:00</updated>

		<published>2003-06-11T01:19:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21626#p21626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21626#p21626"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21626#p21626"><![CDATA[
yes I've seen some probs...<br>1) you have the same line and phrase so I will disable the phrase.<br>2) you still use $nick instead of $user as caesar told you.. i'll change it..<br><div class="codebox"><p>Code: </p><pre><code>## Settings set line "*Fserve Active*" set channel "#E-Hub" ## Binds bind pubm - "$line" voiceUser bind time - "00 * * * *" time_proc bind time - "30 * * * *" time_proc bind pubm - "$line" saveUser ## Code proc voiceUser {nick uhost hand channel rest} { putserv "MODE $channel +v :$nick" return } proc time_proc {min hour day month year} {check_word} proc check_word {} { if {![botisop $::channel]} { putlog "I'm not oped in $::channel." return 0 } foreach user [chanlist $::channel] { if {[isvoice $user $::channel]} { set hand [nick2hand $user] if {[matchattr $hand S]} { chattr $hand -S return } pushmode $::channel -v $user puthelp "NOTICE $user :you've been devoiced for not serving." } } } proc saveUser {nick chan hand idx args} { if {[validuser $hand]} { chattr $hand +S return } adduser $nick chattr $nick +S } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2044">ReaLz</a> — Wed Jun 11, 2003 1:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kevie]]></name></author>
		<updated>2003-06-10T23:59:57-04:00</updated>

		<published>2003-06-10T23:59:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21617#p21617</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21617#p21617"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21617#p21617"><![CDATA[
Hmm, I seem to be having lotsa probs now with this code, so maybe i would list out the code here to see where the prob lies, currently it seems, it doesnt voice certain users, and it devoices some users after like a few minutes say 10 minutes? And it seems like i cant get the message that says "you've been devoiced for not serving." to work too. would really appreciate to get it work again  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> (PS. I'm sorry for being so slow, really just a newbie)<div class="codebox"><p>Code: </p><pre><code>## Settings set line "*Fserve Active*" set phrase "*Fserve Active*" set channel "#E-Hub" ## Binds bind pubm - "*$line*" voiceUser bind time - "00 * * * *" time_proc bind time - "30 * * * *" time_proc bind pubm - "*$phrase" saveUser ## Code proc voiceUser {nick uhost hand channel rest} { putserv "MODE $channel +v :$nick" return } proc time_proc {min hour day month year} {check_word} proc check_word {} { if {![botisop $::channel]} { putlog "I'm not oped in $::channel." return 0} foreach user [chanlist $::channel] { if {[isvoice $user $::channel]} { set hand [nick2hand $user] if {[matchattr $hand S]} { chattr $hand -Sreturn } pushmode $::channel -v $user puthelp "NOTICE $nick :you've been devoiced for not serving."} } } proc saveUser {nick chan hand idx args} { if {[validuser $hand]} { chattr $hand +S return } adduser $nick chattr $nick +S }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3312">kevie</a> — Tue Jun 10, 2003 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ReaLz]]></name></author>
		<updated>2003-06-10T14:16:33-04:00</updated>

		<published>2003-06-10T14:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21609#p21609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21609#p21609"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21609#p21609"><![CDATA[
and add the <div class="codebox"><p>Code: </p><pre><code>return 0</code></pre></div> after the <div class="codebox"><p>Code: </p><pre><code>putlog "I'm not oped in $::channel." </code></pre></div> as caesar said, if you haven't already done that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2044">ReaLz</a> — Tue Jun 10, 2003 2:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T10:18:42-04:00</updated>

		<published>2003-06-10T10:18:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21589#p21589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21589#p21589"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21589#p21589"><![CDATA[
Is $user not $nick. Pay attention, don't sleep in class. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kevie]]></name></author>
		<updated>2003-06-10T10:09:30-04:00</updated>

		<published>2003-06-10T10:09:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21587#p21587</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21587#p21587"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21587#p21587"><![CDATA[
seems like i ended up with more errors, <br>Tcl error [time_proc]: can't read "nick": no such variable<br>Can anyone help me out with that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3312">kevie</a> — Tue Jun 10, 2003 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T09:19:26-04:00</updated>

		<published>2003-06-10T09:19:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21581#p21581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21581#p21581"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21581#p21581"><![CDATA[
Give it a try. I'm shure it won't bite you. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kevie]]></name></author>
		<updated>2003-06-10T09:13:31-04:00</updated>

		<published>2003-06-10T09:13:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21578#p21578</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21578#p21578"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21578#p21578"><![CDATA[
It works now! Bravo. Anyway, can i put a puthelp "NOTICE $nick :you've been devoiced..." on it after the bot devoiced the user?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3312">kevie</a> — Tue Jun 10, 2003 9:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-10T09:08:00-04:00</updated>

		<published>2003-06-10T09:08:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21574#p21574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21574#p21574"/>
		<title type="html"><![CDATA[Simple TCL Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21574#p21574"><![CDATA[
btw, after the:<blockquote class="uncited"><div>putlog "I'm not oped in $::channel." </div></blockquote>you should add a return cos as far as I can see it continues the proc after the putlog.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 10, 2003 9:08 am</p><hr />
]]></content>
	</entry>
	</feed>
