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

	<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-11-15T17:51:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-11-15T17:51:50-04:00</updated>

		<published>2008-11-15T17:51:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85829#p85829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85829#p85829"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85829#p85829"><![CDATA[
hey.<br><br>Nop have no idea.<br><br>I search a little and i found a script... with some edits:<br><div class="codebox"><p>Code: </p><pre><code>bind PUB - .noflame pub:timebanproc pub:timeban {nickname hostname handle channel arguments} {  if {[llength [set arguments [split $arguments]]] &lt; 1} {    putquick "NOTICE $nickname :Usage: !timeban nickname"  } elseif {![onchan [set nick [lindex $arguments 0]] $channel]} {    putquick "NOTICE $nickname :I don't see $nick on $channel!"  } else {    if {[isop $nickname $channel]} {    putquick "MODE $channel +b $nick"    putquick "KICK $channel $nick :\026 Flame não é permitido, ban 60 minutos. Regras: http://gather.dotsi.pt \026"    timer 60 [list putquick "MODE $channel -b $nick"]    }  }}</code></pre></div>This1 is working on my egg.<br><br>Ty TCL_no_TK.<br><br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Sat Nov 15, 2008 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-11-14T01:43:16-04:00</updated>

		<published>2008-11-14T01:43:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85805#p85805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85805#p85805"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85805#p85805"><![CDATA[
Ok after testing the script my self, I've found no problems. The bot seems to be kicking and banning as it should given its a little fast to kick. but not really seeing any problem with that.<blockquote class="uncited"><div>[05:30:48] &lt;@Me&gt; .noflame Flamer<br>[05:30:49] * Flamer was kicked by bot (NO FLAME !!!)<br>[05:30:50] * bot sets mode: +b *!*noident@*.flame.org</div></blockquote>The Bot Not oped on the channel seems to work <blockquote class="uncited"><div>[05:31:11] &lt;@ME&gt; .noflame Flamer<br>[05:31:11] -bot- unable to kick/ban Flamer (i'm not oped)</div></blockquote> And when the nickname isn't on the channel it works fine. <blockquote class="uncited"><div>[05:31:04] &lt;@Me&gt; .noflame Flamer<br>[05:31:05] -bot- I dont see Flamer on this channel.</div></blockquote> I got the same thing on Quakenet <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> so i doubt it was a problem the syntax. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> I'd check out if anything on your bot could be preventing it from kicking and banning <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"> or an other script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_idea.gif" width="15" height="15" alt=":idea:" title="Idea"><br><br>Example: do you use some kind of "maskhost fixing script" that could be causing the problem? since the "maskhost" is used in this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Fri Nov 14, 2008 1:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-11-13T15:59:23-04:00</updated>

		<published>2008-11-13T15:59:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85800#p85800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85800#p85800"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85800#p85800"><![CDATA[
Nop, the egg has op (im runnig it on qnet, #cs.gthr.pt)<br>When i type wrong nick he notices me, and also when i just dont put any nick.<br>It just doesnt works on the kick/ban acting: he does nothing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Thu Nov 13, 2008 3:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-11-13T14:54:20-04:00</updated>

		<published>2008-11-13T14:54:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85798#p85798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85798#p85798"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85798#p85798"><![CDATA[
Could you give more details please? They only way from that, which the bot couldn't be kicking and banning someone was if they where not A Channel Operator or Channel HalfOp (if supported). <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> other than that, it would be becouse the nickname you supplyed wasn't on the bots channel where you used the command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Nov 13, 2008 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-11-13T13:20:09-04:00</updated>

		<published>2008-11-13T13:20:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85794#p85794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85794#p85794"/>
		<title type="html"><![CDATA[Ty.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85794#p85794"><![CDATA[
Hello ! <br>1st ty.<br><br>Theres something wrong on the code, because the eggdrop does not kick/ban.<br><br>The other commands are working fine.<br><br>Guess its something over here:<br><div class="codebox"><p>Code: </p><pre><code> set target [lindex [split $text] 0] if {(![onchan $target $channel])} {  puthelp "NOTICE $nick :I dont see $target on this channel."  return 0 } else {  if {([string match "*!~*@*" "$target![getchanhost $target $channel]"])} {set banmask [maskhost [regsub "~" "$target![getchanhost $target $channel]" "*"]]} else {set banmask [mashost "$target![getchanhost $target $channel]"]}  if {([botisop $channel]) || ([botishalfop $channel])} {   putserv "KICK $channel $target :$noflame_message"   putserv "MODE $channel +b $banmask"   timer $noflame_time [list pushmode $channel -b $banmask]   return 1  } else {   puthelp "NOTICE $nick :unable to kick/ban $target (i'm not oped)"   return 0  } }}</code></pre></div><br>Cumps,<br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Thu Nov 13, 2008 1:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-11-11T16:33:31-04:00</updated>

		<published>2008-11-11T16:33:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85772#p85772</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85772#p85772"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85772#p85772"><![CDATA[
Hopefully, you did not want it to just ban the nickname for the banmask :S<br>If you did, then let me know so i can change it. Here it is anyway, <div class="codebox"><p>Code: </p><pre><code>set noflame_access "o|o"            ;# access flags for public command                                     # "global-flag"|"channel-flag"set noflame_message "NO FLAME !!!"  ;# kick/ban messageset noflame_time "100"              ;# time to remove ban after this many minetsproc noflame:pub {nick host handle channel text} {global noflame_message noflame_time if {([llength $text] == 0)} {  puthelp "NOTICE $nick :Syntax: .noflame &lt;nickname&gt;"  return 0 } set target [lindex [split $text] 0] if {(![onchan $target $channel])} {  puthelp "NOTICE $nick :I dont see $target on this channel."  return 0 } else {  if {([string match "*!~*@*" "$target![getchanhost $target $channel]"])} {set banmask [maskhost [regsub "~" "$target![getchanhost $target $channel]" "*"]]} else {set banmask [mashost "$target![getchanhost $target $channel]"]}  if {([botisop $channel]) || ([botishalfop $channel])} {   putserv "KICK $channel $target :$noflame_message"   putserv "MODE $channel +b $banmask"   timer $noflame_time [list pushmode $channel -b $banmask]   return 1  } else {   puthelp "NOTICE $nick :unable to kick/ban $target (i'm not oped)"   return 0  } }}proc noflame:checksettings {} { global noflame_message noflame_time noflame_access  if {($noflame_access == "")} {   putlog "noflame.tcl: invalid access flags set, should be &lt;globalflag&gt;|&lt;channelflag&gt; (setting it to default o|o)"   set noflame_access o|o  } else {   bind pub $noflame_access .noflame noflame:pub  }  if {($noflame_time &lt; 0) || ($noflame_time == 999)} {   putlog "noflame.tcl: invalid ban time, should be above 0 and below 999. (setting it to default 100)"   set noflame_time 100  }  if {($noflame_message == "") || ([llength $noflame_message] &gt; 200)} {   putlog "noflame.tcl: invalid kick messag. (setting to default \"Please do not flame in this channel\")"   set noflame_message "Please do not flame in this channel"  }   return}putlog "loaded noflame.tcl"return [noflame:checksettings]</code></pre></div> haven't had time to test it, sorry.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> least you know where to find me, if it dosen't <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Nov 11, 2008 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[garfwen]]></name></author>
		<updated>2008-11-10T16:16:33-04:00</updated>

		<published>2008-11-10T16:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85761#p85761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85761#p85761"/>
		<title type="html"><![CDATA[SIMPLE kick/ban w/timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85761#p85761"><![CDATA[
Hello !<br><br>I tryed but no sucess =D<br><br>I just want a simple ban/script like<br><br>.noflame $nick<br>+ban $nick<br>+kick $nick ( NO FLAME !!! )<br>(after 1 hour)<br>-ban $nick<br><br><br>Thanks !<br><br>GaRfWeN<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9777">garfwen</a> — Mon Nov 10, 2008 4:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
