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

	<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>2011-03-05T07:50:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-05T07:50:59-04:00</updated>

		<published>2011-03-05T07:50:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96312#p96312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96312#p96312"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96312#p96312"><![CDATA[
It's not possible to have it with timer?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Sat Mar 05, 2011 7:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mabus4444]]></name></author>
		<updated>2011-03-04T19:39:34-04:00</updated>

		<published>2011-03-04T19:39:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96301#p96301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96301#p96301"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96301#p96301"><![CDATA[
Ok, <br><br>Sorry about all the confusion. The below works (tested), but again with no timer.<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !ban4 pub:bannokickproc pub:bannokick {nick host hand chan text} {   global botnick   set target [lindex $text 0]   set reason [lrange $text 0 end]   set bhost [getchanhost $target $chan]   set banmask "*!*[string trimleft [string range $bhost [string first "!" $bhost] end] ?^~-_+?]"   putserv "MODE $chan +b $banmask"   putquick "PRIVMSG $chan : $reason" }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8329">Mabus4444</a> — Fri Mar 04, 2011 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mabus4444]]></name></author>
		<updated>2011-03-04T19:21:22-04:00</updated>

		<published>2011-03-04T19:21:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96300#p96300</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96300#p96300"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96300#p96300"><![CDATA[
sorry change pub:msg_kban <br>to msg_kban<br><br>or change the proc to pub:msg_kban<br><br>The bind binds a command to a keyword<br>and the proc activates it when someone types it on the channel, so they have to match <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>As for bantime, this doesn't do that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8329">Mabus4444</a> — Fri Mar 04, 2011 7:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-04T15:16:29-04:00</updated>

		<published>2011-03-04T15:16:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96297#p96297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96297#p96297"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96297#p96297"><![CDATA[
Did you tried it?<br><br>because when I type the ban command , I got this in the party line.<br>Tcl error [pub:msg_kban]: invalid command name "pub:msg_kban"<br><br>what about the ban time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Fri Mar 04, 2011 3:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mabus4444]]></name></author>
		<updated>2011-03-04T10:03:08-04:00</updated>

		<published>2011-03-04T10:03:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96294#p96294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96294#p96294"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96294#p96294"><![CDATA[
sorry, my bad<br><br>add this line at the top;<br><br>bind pub o|o !ban pub:msg_kban<br><br><br>and the command will then be !ban user<br>or !ban user message<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8329">Mabus4444</a> — Fri Mar 04, 2011 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-04T03:15:20-04:00</updated>

		<published>2011-03-04T03:15:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96290#p96290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96290#p96290"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96290#p96290"><![CDATA[
So , what will be the command then?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Fri Mar 04, 2011 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mabus4444]]></name></author>
		<updated>2011-03-02T16:17:37-04:00</updated>

		<published>2011-03-02T16:17:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96275#p96275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96275#p96275"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96275#p96275"><![CDATA[
Change   putserv "KICK $chan $target :$reason" lines to<br>#   putserv "KICK $chan $target :$reason"<br><br>That rems out the kick line so he won't be kicked<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8329">Mabus4444</a> — Wed Mar 02, 2011 4:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-01T20:51:26-04:00</updated>

		<published>2011-03-01T20:51:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96271#p96271</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96271#p96271"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96271#p96271"><![CDATA[
What I mean is to ban the user without kicking him/her , and say on the main channel the ban message which the admin mentioned.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Tue Mar 01, 2011 8:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mabus4444]]></name></author>
		<updated>2011-03-01T18:35:10-04:00</updated>

		<published>2011-03-01T18:35:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96270#p96270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96270#p96270"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96270#p96270"><![CDATA[
This is a snippet from Eggdrop Toolz v2.01 for Eggdrop v1.3.4 &amp; up by tzun<div class="codebox"><p>Code: </p><pre><code># Start KickBanproc msg_kban {nick host hand chan text} {global botnickset target [lindex $text 0]set reason [lrange $text 0 end]set bhost [getchanhost $target $chan]set banmask "*!*[string trimleft [string range $bhost [string first "!" $bhost] end] ?^~-_+?]"if {[matchattr $nick o|-] == "1"} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"  } elseif {$target != $botnick} {if {[matchattr $target o|-] == "0"} { if {[matchattr $nick o|o $chan] == 1} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"   } elseif {[matchattr $target o|o $chan] == 0} {  putserv "MODE $chan +b $banmask"  putserv "KICK $chan $target :$reason"  } else {  putserv "NOTICE $nick : You don`t have permission to kick the Op $target" }} elseif {[matchattr $target o|-] == 1} {    putserv "NOTICE $nick : You don`t have permission to kick the Op $target"}} else { putquick "PRIVMSG $chan : banned"}}# End Kickban</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8329">Mabus4444</a> — Tue Mar 01, 2011 6:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-01T09:14:24-04:00</updated>

		<published>2011-03-01T09:14:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96265#p96265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96265#p96265"/>
		<title type="html"><![CDATA[ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96265#p96265"><![CDATA[
Guys , any script which ban someone with specific message on the main channel is available ?<br><br>For example : when I type (trigger ban $nick $bantime $kickmsg) it ban the nick and type on the main channel , Admin which is me has banned you for (kickmsg) for (bantime)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Tue Mar 01, 2011 9:14 am</p><hr />
]]></content>
	</entry>
	</feed>
