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

	<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>2013-03-12T02:07:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-03-12T02:07:03-04:00</updated>

		<published>2013-03-12T02:07:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101220#p101220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101220#p101220"/>
		<title type="html"><![CDATA[Adding exceptions to AbuseReport by BlackShadow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101220#p101220"><![CDATA[
Sweet, this is EXACTLY what I was looking for.<br><br>I should have though of a setudef solution too, but my mind was lost in if this chan then that chan and search chanlists bla bla bla.<br><br>Thank you very much Madalin <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>Be sure that your name (and others here who have helped me) will be given proper credits in the final project for all your support <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Cheers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Tue Mar 12, 2013 2:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-03-11T18:20:18-04:00</updated>

		<published>2013-03-11T18:20:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101216#p101216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101216#p101216"/>
		<title type="html"><![CDATA[Adding exceptions to AbuseReport by BlackShadow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101216#p101216"><![CDATA[
Try this code<br><br>Use .chanset #channel +except for the channel you don`t want the bot to act on and see if its what you wanted<br><div class="codebox"><p>Code: </p><pre><code>#########################################################################                            AbuseReport 1.0##This TCL shows the channel where the bot has problems#!report abused ( shows the channels where the bot is not on chan )#!report deoped ( shows the channels where the bot has no op )#!report users ( shows the channels where the limit of the users is not # achived. You can set the limit of users in the TCL)##                                 BLaCkShaDoW ProductionS########################################################################Here you can set the first char of the commandset report(char) "~"#Here you set the limit of users. If a chan doesent have a number a #users higher than the one you set , you will see the chan on #executing the !report users commandset report(minusers) "15"#Here you can set the flags to use this commandset report(flags) "n"setudef flag except#######################################################################setudef flag reportsetudef flag chanservbind pub $report(flags) $report(char)report reportingproc reporting {nick host hand chan arg} {if {(![authed $hand])} {return 0}global report botnickset sta ""set ::chan $chanset ew [lindex [split $arg] 0]set number [llength [channels]]if {[channel get $chan report]} {if {$arg == ""} { puthelp "NOTICE $nick :Please use : $report(char)report &lt;abused&gt; | &lt;deoped&gt; | &lt;users&gt; ."return 0}if {([regexp -nocase -- {(#[0-9]+|abused|deoped|users)} $ew tmp reported]) &amp;&amp; (![regexp -nocase -- {\S#} $ew])} {switch $reported {abused {foreach c [channels] {if {[onchan $botnick $c]} {set sta 1} else { lappend ab $c }}if {[info exists ab]} {puthelp "PRIVMSG $chan :I am not on this channels :\002[join $ab ", "]\002."} else {puthelp "PRIVMSG $chan :I dont have any chan in my list."}}deoped {foreach c [channels] {if {[onchan $botnick $c]} {if {[botisop $c]} { set sta 1 } else { lappend noopchans $c }}}if {[info exists noopchans]} {puthelp "PRIVMSG $chan :Channels where i am not OP are: \002[join $noopchans ", "]\002."} else {puthelp "PRIVMSG $chan :I dont have any chan in my list"}}users {foreach c [channels] {if {![channel get $c except]} {if {[onchan $botnick $c]} {set usersnumber [llength [chanlist $c]]if {$usersnumber &lt; $report(minusers)} {lappend minuserschans $c}}}}if {[info exists minuserschans]} {puthelp "PRIVMSG $chan :The channels with a number of users lower than $report(minusers) are: \002[join $minuserschans ", "]\002."} else {puthelp "PRIVMSG $chan :I dont have any chan in my list."}}}}}}putlog "AbuseReport Tcl 1.0 by BLaCkShaDoW Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Mon Mar 11, 2013 6:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LoKii]]></name></author>
		<updated>2013-03-11T15:26:34-04:00</updated>

		<published>2013-03-11T15:26:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101213#p101213</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101213#p101213"/>
		<title type="html"><![CDATA[Adding exceptions to AbuseReport by BlackShadow]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101213#p101213"><![CDATA[
Hello everyone,<br><br>Need a little help in editing this script made by <strong class="text-strong">BlackShadow</strong>.<br><div class="codebox"><p>Code: </p><pre><code>#########################################################################                            AbuseReport 1.0##This TCL shows the channel where the bot has problems#!report abused ( shows the channels where the bot is not on chan )#!report deoped ( shows the channels where the bot has no op )#!report users ( shows the channels where the limit of the users is not # achived. You can set the limit of users in the TCL)##                                 BLaCkShaDoW ProductionS########################################################################Here you can set the first char of the commandset report(char) "~"#Here you set the limit of users. If a chan doesent have a number a #users higher than the one you set , you will see the chan on #executing the !report users command  set report(minusers) "15"#Here you can set the flags to use this commandset report(flags) "n"#######################################################################setudef flag reportsetudef flag chanservbind pub $report(flags) $report(char)report reportingproc reporting {nick host hand chan arg} {    if {(![authed $hand])} {return 0}global report botnickset sta ""set ::chan $chanset ew [lindex [split $arg] 0]set number [llength [channels]]if {[channel get $chan report]} {if {$arg == ""} { puthelp "NOTICE $nick :Please use : $report(char)report &lt;abused&gt; | &lt;deoped&gt; | &lt;users&gt; ."return 0}if {([regexp -nocase -- {(#[0-9]+|abused|deoped|users)} $ew tmp reported]) &amp;&amp; (![regexp -nocase -- {\S#} $ew])} {    switch $reported { abused {foreach c [channels] {if {[onchan $botnick $c]} {set sta 1} else { lappend ab $c }}if {[info exists ab]} { puthelp "PRIVMSG $chan :I am not on this channels :\002[join $ab ", "]\002." } else { puthelp "PRIVMSG $chan :I dont have any chan in my list."}}deoped {foreach c [channels] {if {[onchan $botnick $c]} {if {[botisop $c]} { set sta 1 } else { lappend noopchans $c }}}if {[info exists noopchans]} { puthelp "PRIVMSG $chan :Channels where i am not OP are: \002[join $noopchans ", "]\002." } else { puthelp "PRIVMSG $chan :I dont have any chan in my list"}}users {foreach c [channels] {if {[onchan $botnick $c]} {set usersnumber [llength [chanlist $c]]if {$usersnumber &lt; $report(minusers)} {lappend minuserschans $c}}}if {[info exists minuserschans]} { puthelp "PRIVMSG $chan :The channels with a number of users lower than $report(minusers) are: \002[join $minuserschans ", "]\002." } else { puthelp "PRIVMSG $chan :I dont have any chan in my list."}}}}}}putlog "AbuseReport Tcl 1.0 by BLaCkShaDoW Loaded"</code></pre></div>What I'm trying to do is to add an exception list for some channels that i would specify, <strong class="text-strong">only</strong> for the part <strong class="text-strong">report users</strong>. (Thats the part where it reports if the minimum user count on channels is below a set value.)<br><br>I have tried to set a list of channels, and then to let the script perform an <strong class="text-strong">lsearch</strong> with a <strong class="text-strong">foreach</strong> when i realized, that I had no idea how to make exempts. :p<br><br>If this is not too complicated, i would appreciate some help on this.<br><br>Cheers everyone.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10917">LoKii</a> — Mon Mar 11, 2013 3:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
