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

	<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>2008-08-22T20:11:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-22T20:11:42-04:00</updated>

		<published>2008-08-22T20:11:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84784#p84784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84784#p84784"/>
		<title type="html"><![CDATA[code for listing users with flag +T with a time (time)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84784#p84784"><![CDATA[
hi a lot. <br><br>have a script that put chattr +T $chan. <br><br>so, can helpme with a code for generate a list only with flags +T in my channel. (can be added an accountant of minutes?) <br><br>maybe add other proc more with this functions. <br><br>ex: <br>if have 3 users with flag with +T. (user1, testuser, usertest) <br>!list <br>eggdrop say via notice: there are in the chan 3 users with +T, are: User1 (20min) - testuser (2hours 7min) - usertest (45seg). <br><br>the times are for knowing how long has user with flag +T in the channel. <br><br>here paste my code. <br><div class="codebox"><p>Code: </p><pre><code>proc pub:flags {nick uhost hand chan text} {    global simtemop       if {![channel get $chan simtemop]} { return }    set cnick [lindex [split $text] 0]       set bnick [nick2hand $cnick]           if {([string length $text]) &gt; 0} {          if {([matchattr $bnick "*" $chan])} {             if {([onchan $cnick $chan])} {                  chattr $cnick |+T $chan                puthelp "privmsg $chan :Enhorabuena $cnick!! ahora eres Op-Temporal."             if {([botisop $chan])} {                putserv "MODE $chan +v $cnick"                puthelp "notice $cnick :Ahora eres Op-Temporal, porfavor para que veas tus comandos, escribe: !comandos."          } else {  putserv "privmsg X :voice $chan $cnick" }          } else {  puthelp "NOTICE $nick :$cnick no se encuentra dentro de $chan." }          } else {  puthelp "NOTICE $nick :$cnick Ya está como Op-Temporal, quizás no tenga voice, es necesário que lo tenga." }          } else {  puthelp "NOTICE $nick :Usa !+optemp &lt;nick&gt;" } }</code></pre></div> <br><br><br><br>thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Fri Aug 22, 2008 8:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
