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

	<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>2003-06-13T19:19:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-13T19:19:11-04:00</updated>

		<published>2003-06-13T19:19:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21793#p21793</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21793#p21793"/>
		<title type="html"><![CDATA[Public banlist output problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21793#p21793"><![CDATA[
also<br>looks like you used $chan when you should've been using $channel<br><br>EDIT:<br>and you should not use list commands on strings (split them first <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=2369">spock</a> — Fri Jun 13, 2003 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-13T19:16:25-04:00</updated>

		<published>2003-06-13T19:16:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21792#p21792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21792#p21792"/>
		<title type="html"><![CDATA[Public banlist output problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21792#p21792"><![CDATA[
this code works for me<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o banlist pub:banlistproc pub:banlist { nick host handle chan arg } {   putlog "$::lastbind triggered"  set type [lindex [split $arg] 0]   if {$type == ""} {     if {[matchattr $handle o]} {       putserv "PRIVMSG $chan :Usage: banlist &lt;chan|global&gt;"       return 0     }     if {[matchattr $handle -|o $chan]} {       putserv "PRIVMSG $chan :Usage: banlist &lt;chan&gt;"     }  }  } </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Jun 13, 2003 7:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-13T18:23:10-04:00</updated>

		<published>2003-06-13T18:23:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21790#p21790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21790#p21790"/>
		<title type="html"><![CDATA[Public banlist output problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21790#p21790"><![CDATA[
i already tried that too, didnt 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=2858">Aron</a> — Fri Jun 13, 2003 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-06-13T16:59:42-04:00</updated>

		<published>2003-06-13T16:59:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21787#p21787</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21787#p21787"/>
		<title type="html"><![CDATA[Public banlist output problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21787#p21787"><![CDATA[
try<br><br>matchattr $handle -|o $chan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Jun 13, 2003 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Aron]]></name></author>
		<updated>2003-06-13T16:26:24-04:00</updated>

		<published>2003-06-13T16:26:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21786#p21786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21786#p21786"/>
		<title type="html"><![CDATA[Public banlist output problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21786#p21786"><![CDATA[
Im making a public banlist command, but i want it to show different output messages for different userlevels.<br><div class="codebox"><p>Code: </p><pre><code>proc banslist {nick host handle channel arg} {  set type [lindex $arg 0]  if {$type == ""} {   if {[matchattr $handle o]} {    putserv "NOTICE $nick :Usage: banlist &lt;chan|global&gt;"    return 0   }    if {[matchattr $handle o $chan]} {    putserv "NOTICE $nick :Usage: banlist &lt;chan&gt;"   }  }</code></pre></div>Somehow, it will only show the message to global ops, not the one for channel ops.<br><br>Am i doing something wrong with the syntax? I dont get any error messages.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2858">Aron</a> — Fri Jun 13, 2003 4:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
