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

	<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>2007-07-30T03:01:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-30T03:00:03-04:00</updated>

		<published>2007-07-30T03:00:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74841#p74841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74841#p74841"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74841#p74841"><![CDATA[
Sorry, my bad. I think when I quickly pasted the script in a hurry, I overlooked those small bugs, which I made during coding it. <br><br>Anyway, I edited the code above now split the args properly and removed the unwanted info exists for local var found.<br><br>Yeah you are right, an exact script can be made for +I, you just have to change the raw numerics I guess and +e to +I im my oppinion.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jul 30, 2007 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-07-29T11:32:04-04:00</updated>

		<published>2007-07-29T11:32:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74833#p74833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74833#p74833"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74833#p74833"><![CDATA[
Assuming your bot's hostmask does'nt change every now and then, would'nt it be simpler to simply:<div class="codebox"><p>Code: </p><pre><code>.+exempt *!user@host #channel %0.stick exempt *!user@host #channel</code></pre></div>Saves you any trouble that might occur with improperly setting dynamicexempts and userexempts.<br><br>Could also be scripted to update the internal exempts-list as your eggie connects, in case of changing hostmasks... API is pretty much identical to the banlist API.<br><br>@Awyeah:<br>Remember to split strings before using lindex...<br>Also, this line puzzles me:<div class="codebox"><p>Code: </p><pre><code> if {[info exists found]} { unset found }</code></pre></div>"found" isn't set previously in the proc, and is not a globalspace variable...<br>I also don't see why you repeat that check in the end of that same proc, as there is no code depending on found after that (and variable would be removed as the temporary namespace is destroyed when the proc exits).<br>Other than that, it's a good script for those running older eggies lacking support for exempt-modes. Might be a good idea to add I-mode aswell.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Jul 29, 2007 11:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-07-29T09:54:03-04:00</updated>

		<published>2007-07-29T09:54:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74829#p74829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74829#p74829"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74829#p74829"><![CDATA[
<blockquote class="uncited"><div>Well they work fine with bahamut, i.e. with my eggdrop on DALnet.</div></blockquote>I know they do. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>It's probably good that other (non Bahamut) users know that your script will work for them also.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Jul 29, 2007 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-29T04:57:49-04:00</updated>

		<published>2007-07-29T04:57:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74815#p74815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74815#p74815"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74815#p74815"><![CDATA[
Well they work fine with bahamut, i.e. with my eggdrop on DALnet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jul 29, 2007 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-07-28T21:00:24-04:00</updated>

		<published>2007-07-28T21:00:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74812#p74812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74812#p74812"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74812#p74812"><![CDATA[
Those RAWs are <span style="text-decoration:underline">not</span> Bahamut specific.<blockquote class="uncited"><div>348  RPL_EXCEPTLIST RFC2812 &lt;channel&gt; &lt;exceptionmask&gt;  An exception mask for the exception mask list. Also known as RPL_EXLIST (Unreal, Ultimate)<br><br>349  RPL_ENDOFEXCEPTLIST RFC2812 &lt;channel&gt; :&lt;info&gt;  Termination of an RPL_EXCEPTLIST list. Also known as RPL_ENDOFEXLIST (Unreal, Ultimate)</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jul 28, 2007 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-30T03:01:29-04:00</updated>

		<published>2007-07-16T03:51:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74461#p74461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74461#p74461"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74461#p74461"><![CDATA[
One basic idea is to +e the bot's host. I developed a script for that. Whenever my bot gets ops, it checks in the channel +e (exempt list) for it's host, if the host is not in the list, the bot will add it in.<br><br>I made this for bot check on channel join, similarly you can edit my code and make it for checking it on regular intervals of time and you can even check it when bot receives op status. If the bot's host is in the +e list, then even if you kick/ban it, it will rejoin immediately, so there would be no need to make a useless script to unban it with timers and flood services as well, if someone is attacking the channel with stolen access and kicking/banning ops.<br><br>I haven't released this code publically as a script, but I will later. Anyway these raws are for DALnet, not sure if they work on any other networks.<br><div class="codebox"><p>Code: </p><pre><code>##################Minutes to check channel exempt list after bot joinsset exemptdelaycheck "2"bind raw - 348 exempt:addbind raw - 349 exempt:endbind join - "*" exempt:on:op:delayproc exempt:on:op:delay {nick uhost hand chan} { global exemptdelaycheck if {[isbotnick $nick]} { timer $exemptdelaycheck [list exempt:on:op $nick $uhost $hand $chan] }}proc exempt:on:op {nick uhost hand chan} { if {[botisop $chan]} { putquick "MODE $chan +e" -next }}proc exempt:add {from keyword arg} { global exempthost  set arg [split $arg]  set chan [string tolower [lindex $arg 0]]  if {![info exists exempthost($chan)]} { set exempthost($chan) [list] }  lappend exempthost($chan) [string tolower [lindex $arg 2]]  return 1}proc exempt:end {from keyword arg} { global botnick botname exempthost set arg [split $arg] set chan [string tolower [lindex $arg 1]] if {[info exists exempthost($chan)] &amp;&amp; ([llength $exempthost($chan)] &gt;= 1)} {  foreach host $exempthost($chan) {   if {[string match -nocase "*$host*" $botname]} {    if {[info exists exempthost($chan)]} { unset exempthost($chan) }     set found 1; break     }   } } if {![info exists found]} {  putquick "MODE $chan +e $botname" -next } if {[info exists exempthost($chan)]} { unset exempthost($chan) }}</code></pre></div><span style="color:red"><em class="text-italics">Edited: Split $arg and removed unwanted info exists</em></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jul 16, 2007 3:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-07-15T13:17:41-04:00</updated>

		<published>2007-07-15T13:17:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74450#p74450</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74450#p74450"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74450#p74450"><![CDATA[
Try it and see if it has any mistakes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jul 15, 2007 1:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[exelent]]></name></author>
		<updated>2007-07-15T12:41:42-04:00</updated>

		<published>2007-07-15T12:41:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74449#p74449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74449#p74449"/>
		<title type="html"><![CDATA[BotProtect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74449#p74449"><![CDATA[
Hi. One friend of mine wrote me a TCL called TCM.tcl. I don't know from where the name comes. This TCL protects the bot from been kicked and banned from the channel. The TCL sets global ban to the user and kick him from the channel. Can you see if I have made any mistakes? I want the bot to sets ban like this *!*<a href="mailto:ident@host.com">ident@host.com</a>. Here is the script:<br><div class="codebox"><p>Code: </p><pre><code># created by Yxaaaaaaa ( http://www.egghelp-bg.com### Kakuv da e reasona, kogato bota nakazva narushitelq, koito go e bannalset ebreason "Ban me?That option is forbidden for you!"## Kakuv da e reasona, kogato bota nakazva narushitelq, koito go e kiknalset ekreason "Kick me?That option is forbidden for you!"## Potrebiteli s kakuv flag da ne bydat nakazvaniset ekbflag "W"bind mode - *-o* e:dprotproc e:dprot {n u h c m t} {regsub {~} $u "" uset banmask "*!*$u"if {[matchattr $h $::ekbflag]} returnif {[string match "$t" "$::botname"]} {        putquick "PRIVMSG CS :akick $c add $n $::ebreason"        newchanban $c $banmask Prot "nedei me deopva" 10        putquick "KICK $c $n :nedei me deopva"    }}bind mode - *+b* e:bprotproc e:bprot {n u h c m w} {regsub {~} $u "" uset banmask "*!*$u"if {[matchattr $h $::ekbflag]} returnif {[string match "$w" "$::botname"]} {        putquick "PRIVMSG CS :akick $c add $n $::ebreason"        putquick "PRIVMSG CS :unban $c"        newchanban $c $banmask Prot "nedei me banva" 30        putquick "KICK $c $n :nedei me banva"    }}bind kick - * e:kprotproc e:kprot {n u h c w r} {regsub {~} $u "" uset banmask "*!*$u"if {[matchattr $h $::ekbflag]} return    if {$w == $::botnick} {        putquick "PRIVMSG CS :akick $c add $n $::ekreason"        newchanban $c $banmask Prot "nedei me kickva" 20        putquick "KICK $c $n :nedei me kickva"    }}putlog "TCL | TCM"</code></pre></div>I'm from Bulgaria and I'm still learning English, so I'm sorry if I made some mistakes when I write.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9152">exelent</a> — Sun Jul 15, 2007 12:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
