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

	<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>2008-10-09T18:09:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2008-10-09T18:09:35-04:00</updated>

		<published>2008-10-09T18:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85484#p85484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85484#p85484"/>
		<title type="html"><![CDATA[Public command for !gbanlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85484#p85484"><![CDATA[
Thanks man <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=10236">DaRkOoO</a> — Thu Oct 09, 2008 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-10-08T11:27:39-04:00</updated>

		<published>2008-10-08T11:27:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85464#p85464</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85464#p85464"/>
		<title type="html"><![CDATA[RE: Public command for !gbanlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85464#p85464"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub -|- !gbanlist gbanlist:pubproc gbanlist:pub {nick host handle channel text} { if {([llength [banlist]] == 0)} {  puthelp "NOTICE $nick :Global ban list is empty."   return 0 } else {  set count 0   foreach b [banlist] {    set count [expr $count +1]     if {([lindex $b 4] != 0) &amp;&amp; ([lindex $b 2] != 0)} {      puthelp "PRIVMSG $nick :\[$count\] [lindex $b 0] ([lindex $b 1]) [join [ctime [lindex $b 4]]]"      puthelp "PRIVMSG $nick :Set By [lindex $b 5] on [join [ctime [lindex $b 3]]]. (expires [join [ctime [lindex $b 2]]])"     }      if {([lindex $b 4] != 0) &amp;&amp; ([lindex $b 2] == 0)} {       puthelp "PRIVMSG $nick :\[$count\] [lindex $b 0] ([lindex $b 1]) [join [ctime [lindex $b 4]]]"       puthelp "PRIVMSG $nick :Set By [lindex $b 5] on [join [ctime [lindex $b 3]]]. (perm)"      }       if {([lindex $b 4] == 0) &amp;&amp; ([lindex $b 2] != 0)} {        puthelp "PRIVMSG $nick :\[$count\] [lindex $b 0] ([lindex $b 1]) never used."        puthelp "PRIVMSG $nick :Set By [lindex $b 5] on [join [ctime [lindex $b 3]]]. (expires [join [ctime [lindex $b 2]]])"       }        if {([lindex $b 4] == 0) &amp;&amp; ([lindex $b 2] == 0)} {         puthelp "PRIVMSG $nick :\[$count\] [lindex $b 0] ([lindex $b 1]) never used."         puthelp "PRIVMSG $nick :Set By [lindex $b 5] on [join [ctime [lindex $b 3]]]. (perm)"        }   };  puthelp "PRIVMSG $nick :$count Global bans."; return 1 }}</code></pre></div>This is not tested, and the default is to output it to PM of the nickname that used the trigger '!gbanlist'. Unless there are no global bans, then it will notice the nickname this. To change this, to output it to notice the notice the banlist change <strong class="text-strong">ALL</strong> <div class="codebox"><p>Code: </p><pre><code>PRIVMSG $nick</code></pre></div> to <div class="codebox"><p>Code: </p><pre><code>NOTICE $nick</code></pre></div> -OR- to get output it to the channel where the command was used change <strong class="text-strong">ALL</strong> <div class="codebox"><p>Code: </p><pre><code>PRIVMSG $nick</code></pre></div> to <div class="codebox"><p>Code: </p><pre><code>PRIVMSG $channel</code></pre></div>. Also it currently allows <strong class="text-strong">anyone</strong> to use the command '!gbanlist' to change this you will need to add flags to the <div class="codebox"><p>Code: </p><pre><code>bind pub -|- !gbanlist gbanlist:pub</code></pre></div> part. Example: if you wanted Global Ops to be able to use this command and no one else. Use: <div class="codebox"><p>Code: </p><pre><code>bind pub o|- !gbanlist gbanlist:pub</code></pre></div> See <a href="http://eggheads.org/support/egghtml/1.6.19/users.html" class="postlink">Here</a> for flags. And its in the form of <span style="text-decoration:underline">&lt;global flag&gt;</span><strong class="text-strong">|</strong><span style="text-decoration:underline">&lt;channel flag&gt;</span> <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=8130">TCL_no_TK</a> — Wed Oct 08, 2008 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2008-10-04T12:38:16-04:00</updated>

		<published>2008-10-04T12:38:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85396#p85396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85396#p85396"/>
		<title type="html"><![CDATA[Public command for !gbanlist]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85396#p85396"><![CDATA[
Hey,can someone write me tcl with public command for !gbanlist?<br>It should say his global bans,from userfile..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10236">DaRkOoO</a> — Sat Oct 04, 2008 12:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
