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

	<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>2002-12-22T13:44:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2002-12-22T13:44:15-04:00</updated>

		<published>2002-12-22T13:44:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14501#p14501</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14501#p14501"/>
		<title type="html"><![CDATA[Problem with Chanxs.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14501#p14501"><![CDATA[
Ahh, I see now, I glanced over that.<br>I think I need more sleep, or less drink when looking at tcl.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sun Dec 22, 2002 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2002-12-22T05:52:03-04:00</updated>

		<published>2002-12-22T05:52:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14499#p14499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14499#p14499"/>
		<title type="html"><![CDATA[Re: Problem with Chanxs.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14499#p14499"><![CDATA[
<blockquote class="uncited"><div>While looking through a load of scripts I found Chanxs.tcl by egghead, it was originally posted <a href="http://forum.egghelp.org/viewtopic.php?t=2864" class="postlink">here</a><br>I loaded it and tried it, but it only lists global flags when it should list channel flags, and I cant see why.</div></blockquote>Kain, the script uses the matching system of eggdrop. So you modify to the following if you want global ops and local ops listed together:<br><div class="codebox"><p>Code: </p><pre><code>...set flaglist {n m o|o f v}...set flagname(o|o) operator...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sun Dec 22, 2002 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2002-12-21T20:27:02-04:00</updated>

		<published>2002-12-21T20:27:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14480#p14480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14480#p14480"/>
		<title type="html"><![CDATA[Problem with Chanxs.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14480#p14480"><![CDATA[
While looking through a load of scripts I found Chanxs.tcl by egghead, it was originally posted <a href="http://forum.egghelp.org/viewtopic.php?t=2864" class="postlink">here</a><br>I loaded it and tried it, but it only lists global flags when it should list channel flags, and I cant see why.<br>heres the code:<div class="codebox"><p>Code: </p><pre><code>#---------------------------------------------------------------------# chanxs.tcl## Tcl script for IRC bot eggdrop.# Usage: !chanxs# Displays the access levels to the channel of all users in the # userlist. ## v0: 25-Oct-2002#---------------------------------------------------------------------package require eggdrop 1.6package require Tcl 8.0bind PUB m|m !chanxs showchanusersproc showchanusers { nick uhost hand chan text } {   # the flaglist in order of importance!   set flaglist {n m o f v}   # flagnames are used when outputting the results.   set flagname(n) owner   set flagname(m) master   set flagname(o) operator   set flagname(f) friend   set flagname(v) voice   # review all users in the userlist   foreach user [userlist] {      foreach flag $flaglist {         # check if user has global or channel access.          if {[matchattr $user $flag $chan]} {             # check if the user is on the channel            set usernick [hand2nick $user $chan]            if { $usernick != "" &amp;&amp; $usernick != $user } {               set user "$user (aka $usernick)"            }            lappend userswithflag($flag) $user            break         }      }   }   # any results?   if { ![array exists userswithflag] } {      puthelp "PRIVMSG $chan :\002userlist\002: no results."      return 1   }   # output header   set line "([ctime [unixtime]]) userlist results for $chan:"   puthelp "PRIVMSG $chan :\002$line\002"   # output all results.   foreach flag $flaglist {       if {![info exists userswithflag($flag)]} { continue }      # a flagname was set?      if { ![info exists flagname($flag)] } {          set flagname($flag) "Flag $flag"      }      # join the list to a string      set list $userswithflag($flag)      set list [lsort -ascii -increasing $list]      set line [join $list ", "]      # limit the string length.      if {[string length $line] &gt; 300 } {         set line "[string range $line 0 300] ..."      }      puthelp "PRIVMSG $chan :\002$flagname($flag)\002: $line"   }   # output footer.   set line "End of userlist results for $chan."   puthelp "PRIVMSG $chan :\002$line\002"   # log the request.   return 1}putlog "Userlist version 0 loaded."</code></pre></div>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Sat Dec 21, 2002 8:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
