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

	<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>2006-08-26T09:33:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-26T09:33:29-04:00</updated>

		<published>2006-08-26T09:33:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65849#p65849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65849#p65849"/>
		<title type="html"><![CDATA[timed bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65849#p65849"><![CDATA[
<blockquote class="uncited"><div>I'd rather solve that within the actual binding (otherwize you'd have to care for upper/lowercase in channel-name)<div class="codebox"><p>Code: </p><pre><code>bind join - "#channel *" timed_bans</code></pre></div>I'd suggest something like this otherwize:<div class="codebox"><p>Code: </p><pre><code>if {[string tolower $chan] == "#channel"} {</code></pre></div></div></blockquote>Thank you once more - appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Sat Aug 26, 2006 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-26T09:28:06-04:00</updated>

		<published>2006-08-26T09:28:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65848#p65848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65848#p65848"/>
		<title type="html"><![CDATA[timed bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65848#p65848"><![CDATA[
I'd rather solve that within the actual binding (otherwize you'd have to care for upper/lowercase in channel-name)<div class="codebox"><p>Code: </p><pre><code>bind join - "#channel *" timed_bans</code></pre></div>I'd suggest something like this otherwize:<div class="codebox"><p>Code: </p><pre><code>if {[string tolower $chan] == "#channel"} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 26, 2006 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-26T09:23:02-04:00</updated>

		<published>2006-08-26T09:23:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65847#p65847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65847#p65847"/>
		<title type="html"><![CDATA[one more question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65847#p65847"><![CDATA[
sorry one more question:<br>if i used <div class="codebox"><p>Code: </p><pre><code>if {$chan == "#channel"} {</code></pre></div>would that ensure the proc only apply's to #channel ? ( forgot to mention its to only run for one channel, not all the bots within[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Sat Aug 26, 2006 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-26T09:15:40-04:00</updated>

		<published>2006-08-26T09:15:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65846#p65846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65846#p65846"/>
		<title type="html"><![CDATA[perfect]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65846#p65846"><![CDATA[
Perfect - thank you il give it a go, really it was only for channel permissions but bot permissions added also will work great.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Sat Aug 26, 2006 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-26T08:27:09-04:00</updated>

		<published>2006-08-26T08:27:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65844#p65844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65844#p65844"/>
		<title type="html"><![CDATA[timed bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65844#p65844"><![CDATA[
Actually, I guess you really wanna check permissions within the bot:<br><br>isop only checks wether the nickname has been opped on the channel or not, rather than look at the userlist and see wether they've got +o permission (same goes for isvoice)<br><div class="codebox"><p>Code: </p><pre><code>proc timed_bans {nick uhost hand chan} { global botnick if {$nick == $botnick || [matchattr $hand "+bflomn|flomn" $chan]} {  return 0 } else {  timer 15 [list do_kick $nick $uhost $chan] }}proc do_kick {nick host channel} { if {[isop $nick $channel] || [isvoice $nick $channel]} {  return 0 } else {  pushmode $channel +b [maskhost "$nick!$host"]  putkick $channel $nick "*pop*"  putlog "\[RS\]-&gt; $nick was kicked and banned after using 15 mins" }}</code></pre></div>The above script checks both isop/isvoice and flags +o/+v etc<br><br><em class="text-italics">edit:</em> Keep in mind tho, that this code does not handle nick-changes. You'll need something abit more complex for that...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 26, 2006 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-08-25T22:39:05-04:00</updated>

		<published>2006-08-25T22:39:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65829#p65829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65829#p65829"/>
		<title type="html"><![CDATA[timed bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65829#p65829"><![CDATA[
That's because people don't have modes the moment they join, Try using a delayed check by means of a utimer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Aug 25, 2006 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-25T13:36:28-04:00</updated>

		<published>2006-08-25T13:36:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65818#p65818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65818#p65818"/>
		<title type="html"><![CDATA[.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65818#p65818"><![CDATA[
Ok gave it a go but its still nto right, +v +o users are kicked well actually all users regardlss of time in there are kicked after 15 mins <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <div class="codebox"><p>Code: </p><pre><code>bind join - * timed_bansproc timed_bans {nick uhost hand chan} {global botnick  set ipmask [lindex [split [maskhost $nick![getchanhost $nick $chan]] "@"] 1]  set userm [lindex [split [getchanhost $nick $chan] "@"] 0]  set userhost *!*$userm@$ipmaskif {[isop $nick $chan]} {puthelp "NOTICE $nick : \[DW\]-&gt; Hello $nick Happy Opping"putlog "\[DW\]-&gt; $nick is a channel operator for $chan"} else {if {[isvoice $nick $chan]} {puthelp "NOTICE $nick : \[DW\]-&gt; Hello $nick Happy Helping"putlog "\[DW\]-&gt; $nick is a helper for $chan"} else {if {$nick == "nick" || $nick == $botnick} {putlog "\[DW\]-&gt; Don\'t want to ban myself or Gridlock really :P"} else {timer 15 [list putquick "MODE $chan +b $userhost"]timer 15 [list putquick "KICK $chan $nick *pop*."]# Logging/Debuggingtimer 15 [list putlog "\[RS\]-&gt; $nick was kicked and banned after using 15 mins"]}}}}</code></pre></div>Help ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Fri Aug 25, 2006 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-25T06:02:34-04:00</updated>

		<published>2006-08-25T06:02:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65807#p65807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65807#p65807"/>
		<title type="html"><![CDATA[additional]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65807#p65807"><![CDATA[
Will also need to exempt ops/halfops/voices from the banning, any one have any ideas or can point me in right direction ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Fri Aug 25, 2006 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[X-Ception]]></name></author>
		<updated>2006-08-24T18:02:41-04:00</updated>

		<published>2006-08-24T18:02:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65781#p65781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65781#p65781"/>
		<title type="html"><![CDATA[timed bans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65781#p65781"><![CDATA[
I'm in need of a script that will  for every user that joins set a timer that will ban the user 15 mins later unless user has already parted the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6247">X-Ception</a> — Thu Aug 24, 2006 6:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
