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

	<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>2005-06-22T18:39:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-06-22T18:39:45-04:00</updated>

		<published>2005-06-22T18:39:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51251#p51251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51251#p51251"/>
		<title type="html"><![CDATA[joinpart.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51251#p51251"><![CDATA[
Thanks Sir_Fz <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=6362">mrdr</a> — Wed Jun 22, 2005 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-06-22T18:11:37-04:00</updated>

		<published>2005-06-22T18:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51250#p51250</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51250#p51250"/>
		<title type="html"><![CDATA[joinpart.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51250#p51250"><![CDATA[
Your code will work, but there're some redundant checks that can be removed<div class="codebox"><p>Code: </p><pre><code>proc ban:jp {nick uhost hand chan arg} {  global jp botnick if {[isbotnick $nick] || ![botisop $chan] || ![channel get $chan joinpart] || [matchattr $hand b] || [matchattr $hand fom|fom $chan]} { return }  if {[getchanjoin $nick $chan] &gt;= [clock seconds]-$jp(part)} {   set banmask [jp:banmask $uhost $nick]   putquick "MODE $chan +b $banmask"   if {[onchan $nick $chan]} {   putserv "KICK $chan $nick :$jp(reason)"   } } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 22, 2005 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mrdr]]></name></author>
		<updated>2005-06-22T17:40:16-04:00</updated>

		<published>2005-06-22T17:40:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51247#p51247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51247#p51247"/>
		<title type="html"><![CDATA[joinpart.tcl]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51247#p51247"><![CDATA[
I modified joinpart.tcl.<br>Deleted some functions that I don't need, and I don't know are there are no errors. I don't want to crash the bot because of uptime. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>set jp(part) 3set jpban_type 7set jp(reason) "Banned: join/part"setudef flag joinpartbind part - * ban:jpproc ban:jp {nick uhost hand chan arg} {  global jp botnick jpchan  if {[isbotnick $nick] || ![botisop $chan] || ![channel get $chan joinpart]} {    return  }  if {![info exists jpchan($chan)]} {    set jpchan($chan) 0  }  if {($chan == $botnick) || [matchattr $hand b] || [matchattr $hand fom|fom $chan]} {    return  }  if {[getchanjoin $nick $chan] &gt;= [expr {[clock seconds]-$jp(part)}]} {    set banmask [jp:banmask $uhost $nick]    putquick "MODE $chan +b $banmask"     putserv "KICK $chan $nick :$jp(reason)"  }}proc jp:banmask {uhost nick} { global jpban_type  switch -- $jpban_type {   1 { set banmask "*!*@[lindex [split $uhost @] 1]" }   2 { set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]" }   3 { set banmask "*!*$uhost" }   4 { set banmask "*!*[lindex [split [maskhost $uhost] "!"] 1]" }   5 { set banmask "*!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }   6 { set banmask "*$nick*!*@[lindex [split [maskhost $uhost] "@"] 1]" }   7 { set banmask "*$nick*!*@[lindex [split $uhost "@"] 1]" }   8 { set banmask "$nick![lindex [split $uhost "@"] 0]@[lindex [split $uhost @] 1]" }   9 { set banmask "$nick![lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]" }   default { set banmask "*!*@[lindex [split $uhost @] 1]" }   return $banmask  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6362">mrdr</a> — Wed Jun 22, 2005 5:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
