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

	<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>2022-01-01T09:07:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2022-01-01T09:07:27-04:00</updated>

		<published>2022-01-01T09:07:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110732#p110732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110732#p110732"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110732#p110732"><![CDATA[
excellent thanks Spike^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jan 01, 2022 9:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-31T22:35:51-04:00</updated>

		<published>2021-12-31T22:35:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110726#p110726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110726#p110726"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110726#p110726"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set created [getuser $uhandle XTRA created]set createdtime [clock format $created -format "%d.%m.%Y - %H:%M:%S"]putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] $createdtime"</code></pre></div><br>I believe this is the more correct way to use the getuser XTRA command.<br>This method should work even if there is also other data added to the XTRA field.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 31, 2021 10:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-30T11:34:41-04:00</updated>

		<published>2021-12-30T11:34:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110713#p110713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110713#p110713"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110713#p110713"><![CDATA[
thanks Spike^^ that seems to get the proper date and time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 30, 2021 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2021-12-30T11:15:28-04:00</updated>

		<published>2021-12-30T11:15:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110712#p110712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110712#p110712"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110712#p110712"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set created [lindex [getuser $uhandle XTRA] 0 1]set createdtime [clock format $created -format "%d.%m.%Y - %H:%M:%S"]putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] $createdtime"</code></pre></div><br>That will only work if the created info is the only data in the EXTRA field.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Dec 30, 2021 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-30T11:13:59-04:00</updated>

		<published>2021-12-30T11:13:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110711#p110711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110711#p110711"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110711#p110711"><![CDATA[
yes thats the proper date<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 30, 2021 11:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-30T10:32:12-04:00</updated>

		<published>2021-12-30T10:32:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110709#p110709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110709#p110709"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110709#p110709"><![CDATA[
<blockquote class="uncited"><div>...<br><br>only it outputs the time of created user in like <br><br>{created 1640809963} unlike a more readable date</div></blockquote>I'm having trouble finding exactly what that is.   I have a guess, but I wanted to be sure.<br><br>Maybe you can tell me.  <br><br>Have a look at this:<blockquote class="uncited"><div>&lt;jack3&gt; .tcl ctime 1640809963<br>&lt;botnick&gt; Tcl: Wed Dec 29 20:32:43 2021</div></blockquote>Is that the correct date and time ?<br><br>If it is, then we know that [ctime]  is the command that you want, and we can proceed with discussing how to apply it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Dec 30, 2021 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-30T10:01:38-04:00</updated>

		<published>2021-12-30T10:01:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110708#p110708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110708#p110708"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110708#p110708"><![CDATA[
i tried this but got error:  Tcl error [pub:userinfo]: expected integer but got ""<br><br><blockquote class="uncited"><div>set created1 [getuser $uhandle XTRA]<br>set createds [string trimleft created1 "{"]<br>set createda [string trimright createds "}"]<br>set created2  [lindex [split $createda] 1]<br> set createdtime [clock format $created2 -format "%d.%m.%Y - %H:%M:%S"]<br>                    putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS]  $createdtime "</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 30, 2021 10:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-30T09:52:16-04:00</updated>

		<published>2021-12-30T09:52:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110707#p110707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110707#p110707"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110707#p110707"><![CDATA[
nice thanks willyw that helps a lot<br><br>i managed to have this <br><br> putserv "NOTICE $nick :$uhandle - [chattr $uhandle] [getuser $uhandle HOSTS] [getuser $uhandle XTRA] "<br><br><br>only it outputs the time of created user in like <br><br>{created 1640809963} unlike a more readable date<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Dec 30, 2021 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-29T14:50:24-04:00</updated>

		<published>2021-12-29T14:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110702#p110702</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110702#p110702"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110702#p110702"><![CDATA[
I'm glad you got something going.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><blockquote class="uncited"><div>...<br>this one outputs blanks not sure why<br><br>putserv "privmsg $chan :[getuser $uhandle INFO] "<br>...</div></blockquote><blockquote class="uncited"><div>...<br>For each user, *IS* there anything to output for INFO ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Look up just what that INFO is, here:<br><a href="https://docs.eggheads.org/mainDocs/tcl-commands.html#getuser-handle-entry-type-extra-info" class="postlink">https://docs.eggheads.org/mainDocs/tcl- ... extra-info</a><br><br>Perhaps the script is returning just what it finds ... which is nothing. </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Dec 29, 2021 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-29T14:36:35-04:00</updated>

		<published>2021-12-29T14:36:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110701#p110701</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110701#p110701"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110701#p110701"><![CDATA[
oh nice this one seems to work well outputting user and flags<br><br>putserv "privmsg $chan :$uhandle - [chattr $uhandle] "<br><br><br>this one outputs blanks not sure why<br><br>putserv "privmsg $chan :[getuser $uhandle INFO] "<br><br><br>i will work with that thanks willyw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Dec 29, 2021 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-29T12:24:16-04:00</updated>

		<published>2021-12-29T12:24:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110697#p110697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110697#p110697"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110697#p110697"><![CDATA[
<blockquote class="uncited"><div>... try other things ...</div></blockquote><blockquote class="uncited"><div>...<br>To further explore and test - try other things.<br>...</div></blockquote><blockquote class="uncited"><div>...<br> Experiment!<br>...</div></blockquote><br><br>Those are probably THE most important things that we've said.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>They apply - always.  No matter what the project is.<br><br>I try to keep a spare bot running - just for playing with tcl.   Because I KNOW that I'm going to make a mistake or a typo and crash it.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Then ... I just find the mistake, edit it,  start the bot, and move on to the next mistake, until I get them all out.    And re-arranging and re-coding, adding things,  etc.<br><br>Fun stuff....<br><br><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=10420">willyw</a> — Wed Dec 29, 2021 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-29T12:16:20-04:00</updated>

		<published>2021-12-29T12:16:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110696#p110696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110696#p110696"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110696#p110696"><![CDATA[
<blockquote class="uncited"><div>tested but it seems to output empty content</div></blockquote>For each user, *IS* there anything to output for INFO ?   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>Look up just what that INFO is, here:<br><a href="https://docs.eggheads.org/mainDocs/tcl-commands.html#getuser-handle-entry-type-extra-info" class="postlink">https://docs.eggheads.org/mainDocs/tcl- ... extra-info</a><br><br>Perhaps the script is returning just what it finds ... which is nothing.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>So go look at some user's account in bot with .whois .<br>Figure out how to add something to that user's INFO line.   Add it.  ( You can remove it later)<br>Test your script again.    <br>Does it find it and report it?<br><br><br>To further explore and test - try other things.   I mentioned this, above:<blockquote class="uncited"><div>$n - [chattr $n]"</div></blockquote>Modifying that for your current experimental script, would be something like:<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !uinfo pub:userinfo proc pub:userinfo {nick host hand chan text} {        foreach uhandle [userlist] {                  #putserv "privmsg $chan :[getuser $uhandle INFO] "                    putserv "privmsg $chan :$uhandle - [chattr $uhandle] "                  # Experiment! you can try outputting a variety of things, here        } } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Dec 29, 2021 12:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-12-29T12:15:24-04:00</updated>

		<published>2021-12-29T12:15:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110695#p110695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110695#p110695"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110695#p110695"><![CDATA[
Peharps the INFO field is empty for users.<br><br>Have a look @ <a href="https://github.com/eggheads/eggdrop/blob/003b270a52db0a61c6ce17b460fe2af5f555e89c/doc/tcl-commands.doc#L265" class="postlink">https://github.com/eggheads/eggdrop/blo ... s.doc#L265</a> to know what does getuser.<br><br>If you can't have what you want with that, try other things as (as willyw said) <strong class="text-strong">putserv "PRIVMSG $nick :$handle as following global flags: [chattr $uhandle]"</strong><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Dec 29, 2021 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2021-12-29T12:01:25-04:00</updated>

		<published>2021-12-29T12:01:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110694#p110694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110694#p110694"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110694#p110694"><![CDATA[
tested but it seems to output empty content<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Wed Dec 29, 2021 12:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2021-12-29T11:50:32-04:00</updated>

		<published>2021-12-29T11:50:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110693#p110693</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110693#p110693"/>
		<title type="html"><![CDATA[display all created users and their flags with pub or pm msg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110693#p110693"><![CDATA[
<blockquote class="uncited"><div>i tried this but im sure im not even close<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !uinfo pub:userinfo proc pub:userinfo {nick host hand chan text} {   foreach uhandle [userlist] { getuser $uhandle INFO } }</code></pre></div></div></blockquote>The getuser command returns stuff.  You want to see what that stuff is.  <br>Tell it to say it to some channel. <br>Or to you in pm. <br>Or to you in a notice.   <br>Up to you. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>For example:<br><div class="codebox"><p>Code: </p><pre><code>bind pub -|- !uinfo pub:userinfo proc pub:userinfo {nick host hand chan text} {        foreach uhandle [userlist] {                  putserv "privmsg $chan :[getuser $uhandle INFO] "         } }</code></pre></div>Untested.<br>Try it.<br><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=10420">willyw</a> — Wed Dec 29, 2021 11:50 am</p><hr />
]]></content>
	</entry>
	</feed>
