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

	<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>2015-05-09T01:53:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-05-09T01:53:36-04:00</updated>

		<published>2015-05-09T01:53:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104037#p104037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104037#p104037"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104037#p104037"><![CDATA[
Hi,<br><br>sure. Been a bit busy with work lately and didn't had time to finish what I started. Will get back to you later on today hopefully.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat May 09, 2015 1:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-05-09T00:10:00-04:00</updated>

		<published>2015-05-09T00:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104035#p104035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104035#p104035"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104035#p104035"><![CDATA[
caesar <br>it is possible that the tcl ignores all the ircops that are in the channel<br>example:<br><br>that the noidle tcl is employed at the channel #help and there all the ircops are with different vhost and the same tcl ignores them..<br><br>it is possible that the tcl ignores all the ircops that are in certain channel??<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sat May 09, 2015 12:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-21T01:01:01-04:00</updated>

		<published>2015-04-21T01:01:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103896#p103896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103896#p103896"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103896#p103896"><![CDATA[
Then the raw I was looking for is actually 313 (like it says on <a href="http://www.mirc.org/mishbox/reference/rawhelp3.htm#raw313" class="postlink">RAW Events Reference</a>), not 302.<blockquote class="uncited"><div>&lt;- :underworld.se.eu.dal.net 313 cez SaD :is an IRC Operator - Services Administrator<br>&lt;- :MustyHay.eu.ix.Undernet.org 313 cez Buster :is an IRC Operator</div></blockquote>For future reference if others look for something similar then instead of doing a whois on a each member of a channel you can use "/who 0 o" and will get a list of ircops that are at least on one channel as you. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> The result will be in a raw 352.<br><br>But there's a catch.. the output will have the last channel you joined where one ircop is on, so it doesn't mean he's only on that channel. But, as long as we got his name is more than enough to get all common channels or whatnot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 21, 2015 1:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-04-20T23:46:15-04:00</updated>

		<published>2015-04-20T23:46:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103894#p103894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103894#p103894"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103894#p103894"><![CDATA[
I was not referring to that.<br>is he that the tcl ignores to ircops that it detects in the channel<br>using one /whois nick<br>something similar to this:<div class="codebox"><p>Code: </p><pre><code>bind raw - "302" IRCopScan302proc IRCopScan302 {from key text} {global operscan scanoperchanset text "[lindex $text 1]"set nick [lindex [split "$text" :=*] 1]if {($operscan(start)) &amp;&amp; ([info exists scanoperchan($nick)]) &amp;&amp; ([string match *\\* [lindex [split "$text" =] 0]])} {set chan $scanoperchan($nick)</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon Apr 20, 2015 11:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-20T01:21:07-04:00</updated>

		<published>2015-04-20T01:21:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103878#p103878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103878#p103878"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103878#p103878"><![CDATA[
After a bit of digging looks like IRC raw numeric unfortunately aren't standardized so while on Undernet I get this on raw 330 on your IRC Network can be something else. So, if you got a mIRC client do this command in status window:<div class="codebox"><p>Code: </p><pre><code>/debug @bla</code></pre></div>and then whois a ircop and copy/paste the line that says "user is an IRC Operator" from this @bla window. Then it's safe to close it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Apr 20, 2015 1:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-04-19T11:50:43-04:00</updated>

		<published>2015-04-19T11:50:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103864#p103864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103864#p103864"/>
		<title type="html"><![CDATA[Re: help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103864#p103864"><![CDATA[
I was referring that the bot ignores or excludes an ircop when between to the channel using /whois nick.<br><br>Saul is an IRC Operator<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Apr 19, 2015 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-19T06:00:14-04:00</updated>

		<published>2015-04-19T06:00:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103861#p103861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103861#p103861"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103861#p103861"><![CDATA[
@abah: haven't checked the latest code but should work. You get any errors?<br><br>@Arnold_X-P: Is there any other way to know who's ircop apart whois?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Apr 19, 2015 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-04-18T16:01:01-04:00</updated>

		<published>2015-04-18T16:01:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103852#p103852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103852#p103852"/>
		<title type="html"><![CDATA[hi]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103852#p103852"><![CDATA[
hi caesar <br>it is possible to add to the tcl a part where the bot should ignore the ircop<br>my ircops change of vhost and for error they of assistance<br>I would like to know if it is possible to add a section where the tcl should ignore or should exclude to the ircops in general<br> <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=8327">Arnold_X-P</a> — Sat Apr 18, 2015 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2015-04-16T05:31:49-04:00</updated>

		<published>2015-04-16T05:31:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103832#p103832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103832#p103832"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103832#p103832"><![CDATA[
<blockquote class="uncited"><div>Did you copy the code again? Because I have edited my previous post and did some changes in it.</div></blockquote>please check my code <div class="codebox"><p>Code: </p><pre><code>set idlekick(warn) "Warning! You will be kicked in 1 minute due to our anti-idle policy." set idlekick(kick) "Sorry no idle please - This channel has an anti-idle policy." set idlekick(maxidle) 15 set idlekick(bantime) 5 set idlekick(nicks) {     abah     izzahadindaameliyahdindafakhrunnisamusmedyuligeulisluluniarinasusi    jundi    juli    nurafifah    vina    lidya } set idlekick(hosts) {     *.ukhuwah.net } bind time - * idlekick:tick proc idlekick:tick {minute hour day month year} {     global idlekick     foreach chan [channels] {        if {![botisop $chan]} continue        set userlist [lreplace [chanlist $chan] 0 0]        foreach user [split $userlist] {           if {![onchan $user $chan] || [isop $user $chan]} continue           if {[ishalfop $user $chan] || [isvoice $user $chan]} continue           if {[lsearch -nocase $idlekick(nicks) $user] != -1} continue                      set matched 0           set uhost [getchanhost $user $chan]           foreach mask $idlekick(hosts) {              if {[string match -nocase $mask $uhost]} {                 set matched 1                 break              }           }           if {$matched} continue                      set idletime [getchanidle $user $chan]           set warntime [expr {$idlekick(maxidle) - 1}]           if {$idletime == $warntime} {              idlekick:act "warn" $chan $user           } elseif {$idletime &gt;= $idlekick(maxidle)} {              idlekick:act "kick" $chan $user $uhost           }        }     } } proc idlekick:act {act chan user {uhost ""}} {     global idlekick     switch -- $act {        default {           return        } "warn" {           putlog "ANTIIDLE: Warning $user on $chan due to idling"           puthelp "PRIVMSG $channel :$user: $idlekick(warn)"        } "kick" {           putlog "ANTIIDLE: Banning $user on $chan due to idling"           scan $uhost {%[^!]!%[^@]@%s} nick user host           pushmode $chan +b "*!*@$host"           putkick $chan $user $idlekick(kick)           utimer $idlekick(bantime) [list pushmode $chan -b "*!*@$host"]        }"unban" {           if {![botisop $chan]} return              if {[ischanban $uhost $chan]} {                 pushmode $chan -b $uhost              }        }       } }</code></pre></div>and you code <div class="codebox"><p>Code: </p><pre><code>set idlekick(warn) "Warning! You will be kicked in 1 minute due to our anti-idle policy." set idlekick(kick) "Sorry no idle please - This channel has an anti-idle policy." set idlekick(maxidle) 15 set idlekick(bantime) 5 set idlekick(nicks) {     abah     izzahadindaameliyahdindafakhrunnisamusmedyuligeulisluluniarinasusi    jundi    juli    nurafifah    vina    lidya } set idlekick(hosts) {     *.ukhuwah.net } bind time - * idlekick:tick proc idlekick:tick {minute hour day month year} {     global idlekick     foreach chan [channels] {        if {![botisop $chan]} continue        set userlist [lreplace [chanlist $chan] 0 0]        foreach user [split $userlist] {           if {![onchan $user $chan] || [isop $user $chan]} continue           if {[ishalfop $user $chan] || [isvoice $user $chan]} continue           if {[lsearch -nocase $idlekick(nicks) $user] != -1} continue                      set matched 0           set uhost [getchanhost $user $chan]           foreach mask $idlekick(hosts) {              if {[string match -nocase $mask $uhost]} {                 set matched 1                 break              }           }           if {$matched} continue                      set idletime [getchanidle $user $chan]           set warntime [expr {$idlekick(maxidle) - 1}]           if {$idletime == $warntime} {              idlekick:act "warn" $chan $user           } elseif {$idletime &gt;= $idlekick(maxidle)} {              idlekick:act "kick" $chan $user $uhost           }        }     } } proc idlekick:act {act chan user {uhost ""}} {     global idlekick     switch -- $act {        default {           return        } "warn" {           putlog "ANTIIDLE: Warning $user on $chan due to idling"           puthelp "PRIVMSG $channel :$user: $idlekick(warn)"        } "kick" {           putlog "ANTIIDLE: Banning $user on $chan due to idling"           scan $uhost {%[^!]!%[^@]@%s} nick user host           pushmode $chan +b "*!*@$host"           putkick $chan $user $idlekick(kick)           utimer $idlekick(bantime) [list pushmode $chan -b "*!*@$host"]        }"unban" {           if {![botisop $chan]} return              if {[ischanban $uhost $chan]} {                 pushmode $chan -b $uhost              }        }       } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Thu Apr 16, 2015 5:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-16T05:15:08-04:00</updated>

		<published>2015-04-16T05:15:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103831#p103831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103831#p103831"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103831#p103831"><![CDATA[
Did you copy the code again? Because I have edited my previous post and did some changes in it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 16, 2015 5:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2015-04-16T02:57:15-04:00</updated>

		<published>2015-04-16T02:57:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103830#p103830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103830#p103830"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103830#p103830"><![CDATA[
still not working sir <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Thu Apr 16, 2015 2:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-15T00:58:55-04:00</updated>

		<published>2015-04-15T00:58:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103822#p103822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103822#p103822"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103822#p103822"><![CDATA[
Edited the above post and fixed a typo and a missing variable. Should be working fine now.<br><br>Also noticed and didn't fix was the fact that the <em class="text-italics">idlekick(bantime)</em> in the original code is said to be in minutes, yet by using <em class="text-italics">utimer</em> this is actually in seconds. So you got two options: either define <em class="text-italics">idlekick(bantime)</em> in seconds or need to add something to do the math for us to turn the minutes into seconds <em class="text-italics">utimer</em> needs.<br><br>So for example if where to go with option A and define <em class="text-italics">idlekick(bantime)</em> in seconds then multiply 5 by 60 to get actual seconds.<br><br>If where to go with option B then change:<div class="codebox"><p>Code: </p><pre><code>utimer $idlekick(bantime) [list pushmode $chan -b "*!*@$host"] </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>utimer [expr $idlekick(bantime) * 60] [list pushmode $chan -b "*!*@$host"] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Apr 15, 2015 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2015-04-14T23:51:11-04:00</updated>

		<published>2015-04-14T23:51:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103821#p103821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103821#p103821"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103821#p103821"><![CDATA[
i try about that but dont work anything sir <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> maybe any wrong sir ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Tue Apr 14, 2015 11:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-04-15T04:27:27-04:00</updated>

		<published>2015-04-14T08:42:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103815#p103815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103815#p103815"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103815#p103815"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Warning messageset idlekick(warn) "Warning! You will be kicked in 1 minute due to our anti-idle policy."# Kick messageset idlekick(kick) "Sorry no idle please - This channel has an anti-idle policy."# How many minutes for max amount of idle time in minutesset idlekick(maxidle) 15# How many minutes ban user for.set idlekick(bantime) 5## nicksname to ignoreset idlekick(nicks) {bopmAdminServseditionmastereggyOperHelpArnold_X-P}## vhost or ips to ignoreset idlekick(hosts) {*.Speed.org*.Administrator.org*.proxie.scan**190.ix.server.tor.us*.tu.ReY.es*Staff.latinchat**Staff.Speed.org*ChiQuiTiTa.es*.Network.Administrator**VicioChat.Org}bind time - * idlekick:tickproc idlekick:tick {minute hour day month year} {global idlekickforeach chan [channels] {if {![botisop $chan]} continueset userlist [lreplace [chanlist $chan] 0 0]foreach user [split $userlist] {if {![onchan $user $chan] || [isop $user $chan]} continueif {[ishalfop $user $chan] || [isvoice $user $chan]} continueif {[lsearch -nocase $idlekick(nicks) $user] != -1} continueset matched 0set uhost [getchanhost $user $chan]foreach mask $idlekick(hosts) {if {[string match -nocase $mask $uhost]} {set matched 1break}}if {$matched} continueset idletime [getchanidle $user $chan]set warntime [expr {$idlekick(maxidle) - 1}]if {$idletime == $warntime} {idlekick:act "warn" $chan $user} elseif {$idletime &gt;= $idlekick(maxidle)} {idlekick:act "kick" $chan $user $user!$uhost}}}}proc idlekick:act {act chan nick {uhost ""}} {global idlekick    switch -- $act {default {return}        "warn" {putlog "ANTIIDLE: Warning $nick on $chan due to idling"            puthelp "PRIVMSG $chan :$nick: $idlekick(warn)"}        "kick" {putlog "ANTIIDLE: Banning $nick on $chan due to idling"scan $uhost {%[^!]!%[^@]@%s} nick user hostpushmode $chan +b "*!*@$host"putkick $chan $nick $idlekick(kick)utimer [expr $idlekick(bantime) * 60] [list idlekick:act unban $chan $nick "*!*@$host"]        }"unban" {if {![botisop $chan]} returnif {[ischanban $uhost $chan]} {pushmode $chan -b $uhost}}        }}}</code></pre></div>Haven't tested so give it a try and report back if you get any errors.<br><br>Edit: Fixed typo.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Apr 14, 2015 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abah]]></name></author>
		<updated>2015-04-14T04:37:48-04:00</updated>

		<published>2015-04-14T04:37:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103814#p103814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103814#p103814"/>
		<title type="html"><![CDATA[help please tcl of no idles]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103814#p103814"><![CDATA[
if I do not want to use .chanset #channel<br>if anything needs in fox so I do not need to use it ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12299">abah</a> — Tue Apr 14, 2015 4:37 am</p><hr />
]]></content>
	</entry>
	</feed>
