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

	<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>2009-12-31T07:44:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-31T07:44:33-04:00</updated>

		<published>2009-12-31T07:44:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91498#p91498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91498#p91498"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91498#p91498"><![CDATA[
Is it possible to add this what im looking for it to do now is still notice the report to #ops as it does but if it detects room names such as #trivia #blackjack #uno #hangman #DealOrNoDeal #Casino_Slots in the report it will notice channel #OtherStaff instead of #Ops all other reports will still need to goto #Ops<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Thu Dec 31, 2009 7:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-26T15:51:02-04:00</updated>

		<published>2009-12-26T15:51:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91455#p91455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91455#p91455"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91455#p91455"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set reason [lrange [split $arg] 0 end] </code></pre></div>.... You forgot the join...<div class="codebox"><p>Code: </p><pre><code>set reason [join [lrange [split $arg] 0 end]] </code></pre></div><blockquote class="uncited"><div>Thanks for the sugestion speechles.</div></blockquote>Suggestion? It wasn't that at all. It was fixing the part which wasn't written correctly. The same as your code example shown above. This isn't a suggestion, this is a clear error within your script. You might say, meh, added braces when the reason contains spaces is a feature. Feature this isn't, it's clearly flawed understanding on lists vs strings. Blackshadow, all your scripts need to be checked for this problem you aren't watching closely enough these lessons and in your posts your teaching people horrible habits that are flawed...<br><blockquote class="uncited"><div>Need adding to this also what i need it to do is when someone uses the proc once it wont allow them to use it again untill 2 minues has passed if they try within the 2 minutes it<br>should notice them a message such as please wait 2 minutes before sending another report</div></blockquote>Use this simple script below which includes user's "throttle" procedure which is posted <a href="http://forum.egghelp.org/viewtopic.php?t=9009&amp;start=3" class="postlink">here</a>.<div class="codebox"><p>Code: </p><pre><code>variable reportTime 120bind msg -|- report cmd:reportproc cmd:report {nick uhost hand arg} {  if {![throttled "$nick!$uhost" $::reportTime]} {    set reason [join [lrange [split $arg] 0 end]]    putserv "NOTICE #Ops :Report made: &lt;$nick ($uhost)&gt; $reason"    puthelp "NOTICE $nick :Your report has been recieved"  } else {    puthelp "NOTICE $nick :Slow your roll.... You've been throttled!"  }} proc throttled {id seconds} {   global throttle   if {[info exists throttle($id)]&amp;&amp;$throttle($id)&gt;[clock sec]} {      set id 1   } {      set throttle($id) [expr {[clock sec]+$seconds}]      set id 0   }}# delete expired entries every 10 minutesbind time - ?0* throttledCleanupproc throttledCleanup args {   global throttle   set now [clock sec]   foreach {id time} [array get throttle] {      if {$time&lt;=$now} {unset throttle($id)}   }}</code></pre></div>This does exactly what you want. Tracking is done by "nick!ident@host" and each can only use this command once every 2 minutes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Dec 26, 2009 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-26T15:19:45-04:00</updated>

		<published>2009-12-26T15:19:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91454#p91454</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91454#p91454"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91454#p91454"><![CDATA[
Cool Cheers BLaCkShaDoW<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Dec 26, 2009 3:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-12-26T15:05:33-04:00</updated>

		<published>2009-12-26T15:05:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91453#p91453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91453#p91453"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91453#p91453"><![CDATA[
Thanks for the sugestion speechles.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10416">BLaCkShaDoW</a> — Sat Dec 26, 2009 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-12-26T15:02:45-04:00</updated>

		<published>2009-12-26T15:02:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91452#p91452</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91452#p91452"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91452#p91452"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#Here you set the time (in seconds)set report(time) "120"bind msg -|- report cmd:report proc cmd:report {nick uhost hand arg} {global count reportset reason [lrange [split $arg] 0 end]if {![info exists count(report:$uhost)]} { set count(report:$uhost) 0 }if {$count(report:$uhost) &gt;= 1} {puthelp "NOTICE $nick :Please wait for $report(time) seconds before sending another report."return 0}incr count(report:$uhost)utimer $report(time) [list unset count(report:$uhost)]  putserv "NOTICE #badchans :Report made by $nick $reason"   puthelp "NOTICE $nick :Your report has been recieved" }</code></pre></div>Done try it <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=10416">BLaCkShaDoW</a> — Sat Dec 26, 2009 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-26T14:40:13-04:00</updated>

		<published>2009-12-26T14:40:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91451#p91451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91451#p91451"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91451#p91451"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind msg -|- report cmd:reportproc cmd:report {nick uhost hand arg} {  set reason [lrange [split $arg] 0 ]  putserv "NOTICE #Ops Report made by $nick $reason"  puthelp "NOTICE $nick Your report has been recieved"}</code></pre></div>Need adding to this also what i need it to do is when someone uses the proc once it wont allow them to use it again untill 2 minues has passed if they try within the 2 minutes it<br>should notice them a message such as please wait 2 minutes before sending another report<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Sat Dec 26, 2009 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-12-26T12:26:21-04:00</updated>

		<published>2009-12-26T12:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91449#p91449</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91449#p91449"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91449#p91449"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>  set args [split $arg]  set chan [lrange $args 0 end] </code></pre></div>That part is goofy and introduces braces. These two lines should be turned into the one below.<div class="codebox"><p>Code: </p><pre><code>set chan [lindex [split $arg] 0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Dec 26, 2009 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-12-26T04:36:51-04:00</updated>

		<published>2009-12-26T04:36:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91444#p91444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91444#p91444"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91444#p91444"><![CDATA[
Your Welcome <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=10416">BLaCkShaDoW</a> — Sat Dec 26, 2009 4:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-25T17:10:31-04:00</updated>

		<published>2009-12-25T17:10:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91441#p91441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91441#p91441"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91441#p91441"><![CDATA[
Works a treat as ever thanks BLaCkShaDoW<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Dec 25, 2009 5:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BLaCkShaDoW]]></name></author>
		<updated>2009-12-26T15:04:55-04:00</updated>

		<published>2009-12-25T14:15:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91439#p91439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91439#p91439"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91439#p91439"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set channels {"#CWStats""#Services""#Opers""#ChattersWorld-Opers"}bind msg ho|ho forcejoin cmd:forcejoin proc cmd:forcejoin {nick uhost hand arg} {global channels   set chan [lindex [split $arg] 0]foreach c $channels {if {!([matchattr $hand A|A $chan]) &amp;&amp; [string match -nocase $c $chan]} {return 0}}  putserv "SAJOIN $nick :$chan"   puthelp "NOTICE #ChattersWorld-Opers :$nick forcedjoined into $chan" } </code></pre></div>Done try it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10416">BLaCkShaDoW</a> — Fri Dec 25, 2009 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2009-12-25T10:13:00-04:00</updated>

		<published>2009-12-25T10:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91436#p91436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91436#p91436"/>
		<title type="html"><![CDATA[sajoin with an exception]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91436#p91436"><![CDATA[
Im using the following code to allow users of my bot with flags +ho to use a command to forcejoin them selves into channels i want it to disallow them to forcejoin themselves into some channels unless the user also has flag +A<br><br>channels to not allow +ho users to forcejoin are #CWStats #Services #Opers #ChattersWorld-Opers<br><br>+A flag users need to be exempt from this<br><div class="codebox"><p>Code: </p><pre><code>bind msg ho|ho forcejoin cmd:forcejoinproc cmd:forcejoin {nick uhost hand args} {  set args [join $args]  set chan [lrange $args 0 end]  putserv "SAJOIN $nick :$chan"  puthelp "NOTICE #ChattersWorld-Opers $nick forcedjoined into $chan"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Dec 25, 2009 10:13 am</p><hr />
]]></content>
	</entry>
	</feed>
