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

	<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-11-11T06:52:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-11T06:52:46-04:00</updated>

		<published>2002-11-11T06:52:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13039#p13039</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13039#p13039"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13039#p13039"><![CDATA[
<blockquote class="uncited"><div>I had actayly done some code for this, on the night in question, but more important things came up, and I never got around to clicking submit. (more important things ended in a power outage <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br><br>However, here is some code that will return a list of +o's for a channel. This will not return users that have +m or +n.<br><div class="codebox"><p>Code: </p><pre><code>proc returnops {chan} {  set a {}  foreach b [userlist] {    if {([matchattr $b |o $chan]) &amp;&amp; (![matchattr $b |n $chan]) &amp;&amp; (![matchattr $b |m $chan])} {      lappend a $b    }  }  return $a}</code></pre></div>As stated, it returns a list, from which, you can perform your own formatting.<div class="codebox"><p>Code: </p><pre><code>set ops "OP's: [string trimright [join [returnops $channel] ", "] ", "]"</code></pre></div>From this, you can create 2 smaller functions that will do the same for owners and masters.</div></blockquote>Oke thank you i will see if this works <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=109">bobjuh</a> — Mon Nov 11, 2002 6:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-09T09:19:53-04:00</updated>

		<published>2002-11-09T09:19:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12965#p12965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12965#p12965"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12965#p12965"><![CDATA[
I had actayly done some code for this, on the night in question, but more important things came up, and I never got around to clicking submit. (more important things ended in a power outage <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br><br>However, here is some code that will return a list of +o's for a channel. This will not return users that have +m or +n.<br><div class="codebox"><p>Code: </p><pre><code>proc returnops {chan} {  set a {}  foreach b [userlist] {    if {([matchattr $b |o $chan]) &amp;&amp; (![matchattr $b |n $chan]) &amp;&amp; (![matchattr $b |m $chan])} {      lappend a $b    }  }  return $a}</code></pre></div>As stated, it returns a list, from which, you can perform your own formatting.<div class="codebox"><p>Code: </p><pre><code>set ops "OP's: [string trimright [join [returnops $channel] ", "] ", "]"</code></pre></div>From this, you can create 2 smaller functions that will do the same for owners and masters.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Nov 09, 2002 9:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-09T07:09:43-04:00</updated>

		<published>2002-11-09T07:09:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12964#p12964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12964#p12964"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12964#p12964"><![CDATA[
<blockquote class="uncited"><div>What error are you receiving now?<br><br>If I remember, I will have a look in detail tonight to resolve this</div></blockquote>ppslim ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Sat Nov 09, 2002 7:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-04T12:12:40-04:00</updated>

		<published>2002-11-04T12:12:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12814#p12814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12814#p12814"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12814#p12814"><![CDATA[
<blockquote class="uncited"><div>What you are looking for is a kind of a seen script... right?</div></blockquote>no, take your own advise <br><blockquote class="uncited"><div>"maybe I should have read the hole post before I did anything else"</div></blockquote>not only 1 whole post but the first question. That will give you a clue what i'm looking for <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Nov 04, 2002 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T12:10:54-04:00</updated>

		<published>2002-11-04T12:10:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12813#p12813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12813#p12813"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12813#p12813"><![CDATA[
What you are looking for is a kind of a seen script... right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-04T12:10:58-04:00</updated>

		<published>2002-11-04T12:08:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12812#p12812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12812#p12812"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12812#p12812"><![CDATA[
[15:55:23] &lt;BoBjUh&gt; !masters <br>[15:55:24] &lt;MrZap&gt; There is 1 masters in the channel: BoBj <br><br>It doesn't display my whole nick<br><br>In my first post i also asked. when i type master that it first says my bothandle and then de nick on the chan between ( )<br><br>"There is 2 master(s) in de channel : BoBjUh (BoB[Away]) AtomicDJ (Atomic|AW). "<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Nov 04, 2002 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T12:07:30-04:00</updated>

		<published>2002-11-04T12:07:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12811#p12811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12811#p12811"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12811#p12811"><![CDATA[
What error are you receiving now?<br><br>If I remember, I will have a look in detail tonight to resolve this<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 12:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T12:03:45-04:00</updated>

		<published>2002-11-04T12:03:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12810#p12810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12810#p12810"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12810#p12810"><![CDATA[
I will... some day <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-04T12:04:10-04:00</updated>

		<published>2002-11-04T12:03:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12809#p12809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12809#p12809"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12809#p12809"><![CDATA[
<blockquote class="uncited"><div>Typos, so shoot me  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"></div></blockquote>We got rid of the (stupid) typo.<br>It still doesn't work. it doesn't do what it should do<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Nov 04, 2002 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-04T12:02:25-04:00</updated>

		<published>2002-11-04T12:02:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12808#p12808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12808#p12808"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12808#p12808"><![CDATA[
Typos, so shoot me  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 04, 2002 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-04T11:18:45-04:00</updated>

		<published>2002-11-04T11:18:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12805#p12805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12805#p12805"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12805#p12805"><![CDATA[
<blockquote class="uncited"><div>maybe I should have read the hole post before I did anything else  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"></div></blockquote>*g*<br><br>The bind problem i already solved.<br>I'm not so good in tcl but that's a error  someone as stupid as me can solve <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Nov 04, 2002 11:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T11:15:42-04:00</updated>

		<published>2002-11-04T11:15:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12804#p12804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12804#p12804"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12804#p12804"><![CDATA[
maybe I should have read the hole post before I did anything else  <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=1656">gk^</a> — Mon Nov 04, 2002 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[gk^]]></name></author>
		<updated>2002-11-04T11:14:36-04:00</updated>

		<published>2002-11-04T11:14:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12803#p12803</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12803#p12803"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12803#p12803"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pib o !masters pub:showmastersproc pub:showmasters {nick uh hand chan arg} {  set a {}  foreach b [chanlist $chan m|m] {    lappend a "$b ([nick2hand $b $chan])"  }  if {[llength $b] &gt;= 2} {    puthelp "PRIVMSG $chan :There are [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }  else {    puthelp "PRIVMSG $chan :There is [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }}</code></pre></div></div></blockquote>Working code:<br><div class="codebox"><p>Code: </p><pre><code>bind pub o !masters pub:showmastersproc pub:showmasters {nick uh hand chan arg} {  set a {}  foreach b [chanlist $chan m|m] {    lappend a "$b ([nick2hand $b $chan])"  }  if {[llength $b] &gt;= 2} {    puthelp "PRIVMSG $chan :There are [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }  else {    puthelp "PRIVMSG $chan :There is [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }}</code></pre></div>Note that this code only will work it ppslim's code should work (except that little bind error that I fixed)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1656">gk^</a> — Mon Nov 04, 2002 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bobjuh]]></name></author>
		<updated>2002-11-04T10:56:24-04:00</updated>

		<published>2002-11-04T10:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12801#p12801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12801#p12801"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12801#p12801"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pib o !masters pub:showmastersproc pub:showmasters {nick uh hand chan arg} {  set a {}  foreach b [chanlist $chan m|m] {    lappend a "$b ([nick2hand $b $chan])"  }  if {[llength $b] &gt;= 2} {    puthelp "PRIVMSG $chan :There are [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }  else {    puthelp "PRIVMSG $chan :There is [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }}</code></pre></div></div></blockquote>oke but this still didn't work if i do this it crashed with the error<br><blockquote class="uncited"><div>[15:52:17] &lt;MrZap&gt; [15:52] Tcl error in file 'mrzap.conf':<br>[15:52:17] &lt;MrZap&gt; [15:52] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, ctcp, ctcr, dcc, disc, evnt, fil, filt, flud, join, kick, link, load, lost, mode, msg, msgm, need, nick, nkch, notc, note, part, pub, pubm, raw, rcvd, rejn, sent, sign, splt, time, topc, tout, unld, wall<br>[15:52:17] &lt;MrZap&gt;     while executing<br>[15:52:17] &lt;MrZap&gt; "bind pib o !masters pub:showmasters "<br>[15:52:17] &lt;MrZap&gt;     (file "scripts/homonl.tcl" line 116)<br>[15:52:17] &lt;MrZap&gt;     invoked from within<br>[15:52:17] &lt;MrZap&gt; "source scripts/homonl.tcl"<br>[15:52:17] &lt;MrZap&gt;     (file "mrzap.conf" line 333)<blockquote class="uncited"><div><br>i found the error and changed it but the script still doesn't work.<br><br>[15:55:23] &lt;BoBjUh&gt; !masters<br>[15:55:24] &lt;MrZap&gt; There is 1 masters in the channel: BoBj<br><br>also if i change my nick still doesn't display my whole nick</div></blockquote></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=109">bobjuh</a> — Mon Nov 04, 2002 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-06-24T07:59:00-04:00</updated>

		<published>2002-06-24T07:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=8316#p8316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=8316#p8316"/>
		<title type="html"><![CDATA[tcl request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=8316#p8316"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pib o !masters pub:showmastersproc pub:showmasters {nick uh hand chan arg} {  set a {}  foreach b [chanlist $chan m|m] {    lappend a "$b ([nick2hand $b $chan])"  }  if {[llength $b] &gt;= 2} {    puthelp "PRIVMSG $chan :There are [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }  else {    puthelp "PRIVMSG $chan :There is [llength $b] masters in the channel: [string range [join $b {, }] 0 end-2]"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jun 24, 2002 7:59 am</p><hr />
]]></content>
	</entry>
	</feed>
