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

	<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-07T11:35:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Doos]]></name></author>
		<updated>2005-07-07T11:35:14-04:00</updated>

		<published>2005-07-07T11:35:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51926#p51926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51926#p51926"/>
		<title type="html"><![CDATA[whosonline script (update on quit)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51926#p51926"><![CDATA[
I added:<br><br>bind kick - * cc_sign<br>bind splt - * cc_sign<br><br>to the above script.<br><br>It does create a nice little file with users when they join, just doesn't update it on /part /quit.<br>I'm totally new to tcl (perl background) and the tcl/eggdrop tutorial I find, well lets say hard to read.<br><br>Could the OP tell me how to make it work aswell, or someone else.<br><br>Thanks,<br><br>Doos<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6449">Doos</a> — Thu Jul 07, 2005 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T03:36:56-04:00</updated>

		<published>2004-08-23T03:36:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40054#p40054</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40054#p40054"/>
		<title type="html"><![CDATA[whosonline script (update on quit)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40054#p40054"><![CDATA[
No problem, just use the correct number of arguments. Each bind utilizes different numbers and types of arguments in their procedures!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 3:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jjblade]]></name></author>
		<updated>2004-08-23T03:22:21-04:00</updated>

		<published>2004-08-23T03:22:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40052#p40052</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40052#p40052"/>
		<title type="html"><![CDATA[whosonline script (update on quit)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40052#p40052"><![CDATA[
Hi!<br><br>Thank you. <br>I wrote all this events you´ve told me in my script and it works fine now!<br>Don´t even need the counter solution.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5240">jjblade</a> — Mon Aug 23, 2004 3:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-08-23T00:58:15-04:00</updated>

		<published>2004-08-23T00:58:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40042#p40042</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40042#p40042"/>
		<title type="html"><![CDATA[whosonline script (update on quit)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40042#p40042"><![CDATA[
Basically what you can do, to make a simple channel user counting script and noting the channel usercount to a TXT file.<br><br>Binding on channel events such as<br><br>bind sign (users quitting a channel)<br>bind join (users joining a channel)<br>bind part (users parting a channel)<br>bind kick (users kicked from a channel)<br>bind splt (users splitting from a channel due to a network split)<br><br>These triggers will always make users join and leave from a channel which will affect the usercount (channel population).<br><br>You can make a script to count the channels population through the channel list command.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> <br><br><strong class="text-strong">set totalusers [llength [chanlist #channel]]</strong> will count the total number of channel users.<br><br>You can bind all of these above events and then count the total number of users through the chanlist command open your defined txt file, write to it and close it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br>ALSO:<br>What you can do is instead of binding to all events, you can use a timer or utimer to continuously check the channel usercount every X secs or X mins and then save the user count and write it to a txt file!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Aug 23, 2004 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jjblade]]></name></author>
		<updated>2004-08-21T15:26:37-04:00</updated>

		<published>2004-08-21T15:26:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39969#p39969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39969#p39969"/>
		<title type="html"><![CDATA[whosonline script (update on quit)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39969#p39969"><![CDATA[
Im using the whosonline script below.<br>It works, except one thing.<br>If the user leaves the chat by cutting the connection, the script doesnt update the whosonline list.<br><br>Could you help me an tell how i get the script updating the whosonline list if someone´s quitting?<br>I´ve tried it with this block:<div class="codebox"><p>Code: </p><pre><code># Check for a QUITproc hung_up {nick uhost handle chan msg} {   regsub -all "\#" $chan "" chan   global cc_chanlist   if {[lsearch $cc_chanlist $chan] != -1} {cc_countusers $chan}   return 0 }</code></pre></div>but it didn´t work.<br><br>TiA!<br><br><div class="codebox"><p>Code: </p><pre><code># FILENAME: CHANCOUNT.TCL # VERSION:  0.8 (BETA) # DATE:     8/18/2002 # AUTHOR:   Mapherick^ApL &lt;mapherick at apl-productions.org&gt; # PURPOSE:  To puts the current number of people in a predefined (list of) channel(s) # $cc_outptfile: filename to write to # $cc_outptpath: path to outputfile from your eggdrop dir set cc_outptpath "../pjircapplet/whosonline/" set cc_outptfile "whosonline.txt" # $cc_chanlist # List of channels to monitor (ommit #) set cc_chanlist {sheepworld BlackSheep Seelsorge Flirtwiese Themenabend} bind join - * cc_join bind part - * cc_part bind sign - * cc_sign proc cc_countusers {chan} {   global cc_outptfile cc_outptpath   set c [catch {set fd [open "$cc_outptpath$chan.$cc_outptfile" w]} reason]   set cc_numusers 0   set cc_nicks [chanlist "\#$chan"]   puts $fd [join $cc_nicks]  foreach n $cc_nicks {      incr cc_numusers      }     if $c {     set msg "CHANCOUNT.TCL: ERROR: Error opening outpt file"     putlog $msg     catch {if [info exists fd] {close $fd}}     return 0   } else {     puts $fd $cc_numusers     catch {close $fd}   }   return 0 } proc cc_join {nick uhost handle chan} {   regsub -all "\#" $chan "" chan   global cc_chanlist   if {[lsearch $cc_chanlist $chan] != -1} {cc_countusers $chan}   return 0 } proc cc_part {nick uhost handle chan msg} {   regsub -all "\#" $chan "" chan   global cc_chanlist   if {[lsearch $cc_chanlist $chan] != -1} {cc_countusers $chan}   return 0 } proc cc_sign {nick uhost handle chan msg} {   regsub -all "\#" $chan "" chan   global cc_chanlist   if {[lsearch $cc_chanlist $chan] != -1} {cc_countusers $chan}   return 0 }# Check for a QUITproc hung_up {nick uhost handle chan msg} {   regsub -all "\#" $chan "" chan   global cc_chanlist   if {[lsearch $cc_chanlist $chan] != -1} {cc_countusers $chan}   return 0 }putlog "\002WHOSONLINE:\002 whosonline.tcl Version1 is loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5240">jjblade</a> — Sat Aug 21, 2004 3:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
