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

	<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>2023-09-22T12:43:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[fusionx]]></name></author>
		<updated>2023-09-22T12:40:36-04:00</updated>

		<published>2023-09-22T12:40:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112178#p112178</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112178#p112178"/>
		<title type="html"><![CDATA[Disregard - removing the script. Can't delete this post!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112178#p112178"><![CDATA[
Thank you for the assist, but it's throwing the same error. <br><br>I'm going to delete this - I'm finding other errors now. It's not parsing idle times correctly. I'll find something else <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12955">fusionx</a> — Fri Sep 22, 2023 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2023-09-22T11:31:20-04:00</updated>

		<published>2023-09-22T11:31:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112177#p112177</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112177#p112177"/>
		<title type="html"><![CDATA[Disregard - removing the script. Can't delete this post!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112177#p112177"><![CDATA[
Try with:<div class="codebox"><p>Code: </p><pre><code>timer $bantime [list putserv "MODE $channel -b $nick!*@$nickhost"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Sep 22, 2023 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fusionx]]></name></author>
		<updated>2023-09-22T11:19:48-04:00</updated>

		<published>2023-09-22T11:19:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112176#p112176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112176#p112176"/>
		<title type="html"><![CDATA[here's the entire script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112176#p112176"><![CDATA[
In case there's something above causing a spurious issue, here's the entire script. ( Pulled from <a href="https://github.com/fredsted/eggdrop-scripts/blob/master/antiidle/antiidle.tcl" class="postlink">https://github.com/fredsted/eggdrop-scr ... tiidle.tcl</a> ).<br><div class="codebox"><p>Code: </p><pre><code># How to use:# 1) Enable on channels you wish to use it on:#.chanset #example +idlekick## 2) Configure how long users are allowed to idle (in minutes)#.chanset #example idlekick-time 15## 3) You may configure the messages below.# Warning messageset warningmsg "Warning! You will be kicked in 1 minute due to our anti-idle policy."# Kick messageset kickmsg "Kicked due to inactivity - this channel has an anti-idle policy."# How many minutes ban user for.set bantime 2   # ------------------------------------------------------------------------------------setudef flag idlekicksetudef str idlekick-timeproc idlekick:tick {minute hour day month year} {foreach channel [channels] {if {[channel get $channel idlekick] == "1" &amp;&amp; [botisop $channel]} {foreach iu [chanlist $channel] {if {![isbotnick $iu] &amp;&amp; [onchan $iu $channel] &amp;&amp; ![isop $iu $channel] &amp;&amp; ![ishalfop $iu $channel] &amp;&amp; ![isvoice $iu $channel]} {if {[getchanidle $iu $channel] == [expr [channel get $channel idlekick-time] -1]} {idlekick:warn $channel $iu} if {[getchanidle $iu $channel] &gt;= [channel get $channel idlekick-time]} {idlekick:kick $channel $iu}}}}}}proc idlekick:warn {channel nick} {global warningmsgputlog "ANTIIDLE: Warning $nick on $channel due to idling"puthelp "PRIVMSG $channel :$nick: $warningmsg"}proc idlekick:kick {channel nick} {global kickmsg bantimeputlog "ANTIIDLE: Banning $nick on $channel due to idling"set nickhost [lindex [split [getchanhost $nick] "@"] 1]putserv "MODE $channel +b $nick!*@$nickhost"putserv "KICK $channel $nick :$kickmsg"timer $bantime putserv "MODE $channel -b $nick!*@$nickhost"}bind time - "* * * * *" idlekick:tick</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12955">fusionx</a> — Fri Sep 22, 2023 11:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fusionx]]></name></author>
		<updated>2023-09-22T12:43:41-04:00</updated>

		<published>2023-09-22T10:47:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112175#p112175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112175#p112175"/>
		<title type="html"><![CDATA[Disregard - removing the script. Can't delete this post!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112175#p112175"><![CDATA[
<blockquote class="uncited"><div> timer $bantime putserv "MODE $channel -b $nick!*@$nickhost"</div></blockquote>That line is throwing the following error:  <blockquote class="uncited"><div>wrong # args: should be "putserv text ?options?"</div></blockquote>A nearly identical line above it that sets the ban works fine:<br><blockquote class="uncited"><div> putserv "MODE $channel +b $nick!*@$nickhost"</div></blockquote>Any ideas? I'm using an old anti-idle script. It works perfectly except for this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12955">fusionx</a> — Fri Sep 22, 2023 10:47 am</p><hr />
]]></content>
	</entry>
	</feed>
