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

	<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-16T21:22:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-16T21:22:02-04:00</updated>

		<published>2005-07-16T21:22:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52664#p52664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52664#p52664"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52664#p52664"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> if {[llength $users]} {   foreach {u1 u2 u3 u4 u5} $users {    putserv "notice $nick :$u1, $u2, $u3, $u4, $u5"   }   foreach ann [array names total] {    lappend totals "($ann: total($ann))"   }   putserv "notice $nick :$totals" } {  putserv "notice $nick :There are no users on me for $chan." }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 16, 2005 9:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-16T21:09:07-04:00</updated>

		<published>2005-07-16T21:09:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52663#p52663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52663#p52663"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52663#p52663"><![CDATA[
ehm could you add if there are no users that he answer No users found on my userlist for chan ?  <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=6461">Winters</a> — Sat Jul 16, 2005 9:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-14T10:58:34-04:00</updated>

		<published>2005-07-14T10:58:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52459#p52459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52459#p52459"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52459#p52459"><![CDATA[
And if you want the totals to be displayed on the same line, then use:<div class="codebox"><p>Code: </p><pre><code>proc list:users {nick uhost hand chan arg} {  putserv "notice $nick :Users for channel $chan:"  set total(Total) 0  set total(owner) 0  set total(master) 0  set total(operator) 0  set total(voice) 0  set total(ban) 0  foreach user [userlist] {   incr total(Total)   if {[matchattr $user |n $chan]} {    lappend users "\{User: $user Flags: +n\}"    incr total(owner)   } elseif {[matchattr $user |m $chan]} {    lappend users "\{User: $user Flags: +m\}"    incr total(master)   } elseif {[matchattr $user |o $chan]} {    lappend users "\{User: $user Flags: +o\}"    incr total(operator)   } elseif {[matchattr $user |v $chan]} {    lappend users "\{User: $user Flags: +v\}"    incr total(voice)   } elseif {[matchattr $user |k $chan]} {    lappend users "\{User: $user Flags: +k\}"    incr total(ban)   }  }  if {[llength $users]} {   foreach {u1 u2 u3 u4 u5} $users {    putserv "notice $nick :$u1, $u2, $u3, $u4, $u5"   }  }  foreach ann [array names total] {   lappend totals "($ann: total($ann))" } putserv "notice $nick :$totals"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jul 14, 2005 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-14T10:48:54-04:00</updated>

		<published>2005-07-14T10:48:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52458#p52458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52458#p52458"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52458#p52458"><![CDATA[
Ok thx <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=6461">Winters</a> — Thu Jul 14, 2005 10:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-13T16:15:53-04:00</updated>

		<published>2005-07-13T16:15:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52424#p52424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52424#p52424"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52424#p52424"><![CDATA[
That's because you illogically edited the script, use:<div class="codebox"><p>Code: </p><pre><code>proc list:users {nick uhost hand chan arg} {  putserv "notice $nick :Users for channel $chan:" set total(Total) 0 set total(owner) 0  set total(master) 0  set total(operator) 0  set total(voice) 0  set total(ban) 0  foreach user [userlist] {   incr total(Total)   if {[matchattr $user |n $chan]} {    lappend users "\{\User: $user Flags: +n\}\ "    incr total(owner)   } elseif {[matchattr $user |m $chan]} {    lappend users "\{\User: $user Flags: +m\}\ ,"    incr total(master)   } elseif {[matchattr $user |o $chan]} {    lappend users "\{\User: $user Flags: +o\}\ ,"    incr total(operator)   } elseif {[matchattr $user |v $chan]} {    lappend users "\{\User: $user Flags: +v\}\ ,"    incr total(voice)   } elseif {[matchattr $user |k $chan]} {    lappend users "\{\User: $user Flags: +k\}\ ,"    incr total(ban)   }  }  if {[llength $users]} {   foreach {u1 u2 u3 u4 u5} $users {    putserv "notice $nick :$u1, $u2, $u3, $u4, $u5"   }  }  foreach ann [array names total] {   putserv "notice $nick :\[$ann: total($ann)\]" } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jul 13, 2005 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-13T12:58:59-04:00</updated>

		<published>2005-07-13T12:58:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52413#p52413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52413#p52413"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52413#p52413"><![CDATA[
Hey now I loaded into my eggdrop on root and now he post it 5 times here:<br><blockquote class="uncited"><div>[18:58:03] -Thompson- Users for channel #gfkkg:<br>[18:58:03] -Thompson- [[GS]Winters Flags: +n ]<br>[18:58:04] -Thompson- Total: 1 (owner: 1, master: 0, op: 0, voice: 0, ban: 0).<br>[18:58:06] -Thompson- Total: 1 (owner: 1, master: 0, op: 0, voice: 0, ban: 0).<br>[18:58:08] -Thompson- Total: 1 (owner: 1, master: 0, op: 0, voice: 0, ban: 0).<br>[18:58:10] -Thompson- Total: 1 (owner: 1, master: 0, op: 0, voice: 0, ban: 0).<br>[18:58:12] -Thompson- Total: 1 (owner: 1, master: 0, op: 0, voice: 0, ban: 0).</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Wed Jul 13, 2005 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-11T11:37:33-04:00</updated>

		<published>2005-07-11T11:37:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52252#p52252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52252#p52252"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52252#p52252"><![CDATA[
Yeah now its perfect thx @ all <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=6461">Winters</a> — Mon Jul 11, 2005 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-07-10T14:59:01-04:00</updated>

		<published>2005-07-10T14:59:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52195#p52195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52195#p52195"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52195#p52195"><![CDATA[
<blockquote class="uncited"><div>try<br><div class="codebox"><p>Code: </p><pre><code>if {([llenth $users] &lt;= 5)} {   putserv "NOTICE $nick :[string trimright [join $users] [join $users] [join $users] [join $users] [join $users] ,]"  }</code></pre></div>Maybe that will work.</div></blockquote>why don't you quit posting your clueless and useless stuff already? you don't know what <strong class="text-strong">you</strong> are doing, yet you feel obliged to advise others - that's preposterous<br><br>@Winters: instead of<div class="codebox"><p>Code: </p><pre><code>putserv "NOTICE $nick :[string trimright [join $users] ,]"</code></pre></div>use:<div class="codebox"><p>Code: </p><pre><code>foreach {u1 u2 u3 u4 u5} $users {   putserv "notice $nick :$u1, $u2, $u3, $u4, $u5"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jul 10, 2005 2:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-10T12:48:37-04:00</updated>

		<published>2005-07-10T12:48:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52186#p52186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52186#p52186"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52186#p52186"><![CDATA[
doesn't work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Sun Jul 10, 2005 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-10T12:41:11-04:00</updated>

		<published>2005-07-10T12:41:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52184#p52184</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52184#p52184"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52184#p52184"><![CDATA[
try<br><div class="codebox"><p>Code: </p><pre><code>if {([llenth $users] &lt;= 5)} {   putserv "NOTICE $nick :[string trimright [join $users] [join $users] [join $users] [join $users] [join $users] ,]"  }</code></pre></div>Maybe that will work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Jul 10, 2005 12:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-10T12:18:58-04:00</updated>

		<published>2005-07-10T12:18:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52183#p52183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52183#p52183"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52183#p52183"><![CDATA[
nope doesn't work :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Sun Jul 10, 2005 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2005-07-10T12:10:40-04:00</updated>

		<published>2005-07-10T12:10:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52182#p52182</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52182#p52182"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52182#p52182"><![CDATA[
change<br><div class="codebox"><p>Code: </p><pre><code>if {[llength $users]} {   putserv "NOTICE $nick :[string trimright [join $users] ,]"  } </code></pre></div> <br>to<br><div class="codebox"><p>Code: </p><pre><code>if {([llenth $users] &lt;= 5)} {   putserv "NOTICE $nick :[string trimright [join $users] ,]"  } </code></pre></div>I think that should work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sun Jul 10, 2005 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-10T11:59:31-04:00</updated>

		<published>2005-07-10T11:59:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52180#p52180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52180#p52180"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52180#p52180"><![CDATA[
kk now i fixed it and i just want that the bot send 5 users per line could you make it please :&gt;?<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !listusers list:usersproc list:users {nick uhost hand chan arg} {putserv "notice $nick :Users for channel $chan:" set total(owner) 0 set total(master) 0 set total(operator) 0 set total(voice) 0 set total(ban) 0 set total(Total) 0 foreach user [userlist] {  incr total(Total)  if {[matchattr $user |n $chan]} {   lappend users "\{\User: $user Flags: +n\}\ "   incr total(owner)  } elseif {[matchattr $user |m $chan]} {   lappend users "\{\User: $user Flags: +m\}\ ,"   incr total(master)  } elseif {[matchattr $user |o $chan]} {   lappend users "\{\User: $user Flags: +o\}\ ,"   incr total(operator)  } elseif {[matchattr $user |v $chan]} {   lappend users "\{\User: $user Flags: +v\}\ ,"   incr total(voice)  } elseif {[matchattr $user |k $chan]} {   lappend users "\{\User: $user Flags: +k\}\ ,"   incr total(ban)  } } if {[llength $users]} {  putserv "NOTICE $nick :[string trimright [join $users] ,]"  }foreach ann [array names total] {putserv "notice $nick :Total: $total(Total) (owner: $total(owner), master: $total(master), op: $total(operator), voice: $total(voice), ban: $total(ban))."}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Sun Jul 10, 2005 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Winters]]></name></author>
		<updated>2005-07-10T11:15:57-04:00</updated>

		<published>2005-07-10T11:15:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52176#p52176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52176#p52176"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52176#p52176"><![CDATA[
yeah there was a proc with userlist sry :&lt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6461">Winters</a> — Sun Jul 10, 2005 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-07-10T10:49:25-04:00</updated>

		<published>2005-07-10T10:49:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=52174#p52174</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=52174#p52174"/>
		<title type="html"><![CDATA[Userlist script with total counter]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=52174#p52174"><![CDATA[
I guess you have a proc called "userlist" which is overloading on the [userlist] eggdrop tcl command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jul 10, 2005 10:49 am</p><hr />
]]></content>
	</entry>
	</feed>
