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

	<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-09-27T11:45:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2008-09-27T11:45:43-04:00</updated>

		<published>2008-09-27T11:45:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85308#p85308</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85308#p85308"/>
		<title type="html"><![CDATA[Script for public command !banlist and for # ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85308#p85308"><![CDATA[
I tried tons of them, but no one works like i want.They usually works for all chanells and i need it just for few chanells which i can add and remove.<br><br>[EDIT] - Okey,I made this from few tcl scripts :<br><div class="codebox"><p>Code: </p><pre><code>bind pubm -* "*#*" badchar:pub# Define the channel where u want the kickbans to work:set bchan "#botchan"proc badchar:pub {nick uhost hand chan arg} {    global bchan if {$chan == "#botchan"} {     if {[botisop $bchan]} {    putquick "MODE $bchan +b *!*@[lindex [split $uhost @] 1]"    putserv "KICK $bchan $nick :Bad Character"    }           }}</code></pre></div>Now..I need to have an option that will protect channel ops (will not kick @'s even if they say # on some channel) ..But I need to can put 1 ( protect @'s) ,and 2 (don't protect ops)..And I wanna to can add more channels..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10236">DaRkOoO</a> — Sat Sep 27, 2008 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-09-27T11:20:08-04:00</updated>

		<published>2008-09-27T11:20:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85306#p85306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85306#p85306"/>
		<title type="html"><![CDATA[Script for public command !banlist and for # ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85306#p85306"><![CDATA[
This should display the channel-bans after requesting !banlist (feel free to modify it).<div class="codebox"><p>Code: </p><pre><code>bind pub - !banlist proc:banlistproc proc:banlist {nick uhost hand chan arg} { foreach b [chanbans $chan] {  puthelp "privmsg $chan :[lindex $b 0] by [lindex $b 1]" }}</code></pre></div>As for the second request, there are tons of anti-advertising/bad words scripts in the <a href="http://www.egghelp.org/tcl.htm" class="postlink">Tcl archive</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Sep 27, 2008 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DaRkOoO]]></name></author>
		<updated>2008-09-27T07:40:37-04:00</updated>

		<published>2008-09-27T07:40:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85304#p85304</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85304#p85304"/>
		<title type="html"><![CDATA[Script for public command !banlist and for # ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85304#p85304"><![CDATA[
Hey guys,can somebody write me tcl which will reacts when I type "!banlist" in some channel,and then he will say all bans in that channel..also public..I tried to edit code that I find in manager.tcl :<br> <div class="codebox"><p>Code: </p><pre><code># Usage: !banlistproc pub:banlist {nick host hand chan arg} {global botnickputserv PRIVMSG $chan "\002Global bans:\002"if {[banlist] == ""} {putserv "PRIVMSG $chan :None."} else {foreach ig [banlist] {set what [lindex $ig 0]set by [lindex $ig 5]set comment [lindex $ig 1]putserv "PRIVMSG $chan : "$what - by $by, Reason: $comment"}}putserv "PRIVMSG $chan : Bans for $chan:"if {[banlist $chan] == ""} {putserv "PRIVMSG $chan :None."} else {foreach b [banlist $chan] {set what [lindex $b 0]set by [lindex $b 5]set comment [lindex $b 1]putserv "PRIVMSG $chan : $what - by #4$by#, Reason: $comment"}}putserv "PRIVMSG $chan : End Of Banlist."putcmdlog "&lt;&lt;$nick&gt;&gt; !$hand! banlist $chan"}</code></pre></div>  And second tcl..I need script that will ban anyone who writes *#* in channel #bla..And I wanna to add more channels,2 or 3 ,but not all channels bot is on..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10236">DaRkOoO</a> — Sat Sep 27, 2008 7:40 am</p><hr />
]]></content>
	</entry>
	</feed>
