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

	<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-11-21T18:00:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-11-21T18:00:56-04:00</updated>

		<published>2006-11-21T18:00:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68303#p68303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68303#p68303"/>
		<title type="html"><![CDATA[check my little tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68303#p68303"><![CDATA[
<blockquote class="uncited"><div>Nick has AOp access to #Channel.  Reason: Identification to the nickname Nick.</div></blockquote>The above is the DALnet ChanServ response to a "why" trigger. You do not appear to be checking this, instead a procedure is triggered on any response from ChanServ.<div class="codebox"><p>Code: </p><pre><code>proc bot:checkop:checkop {nick host hand chan mode target}</code></pre></div>The above is incorrect. Try:<div class="codebox"><p>Code: </p><pre><code>proc bot:checkop {nick host hand chan mode target}</code></pre></div>You could improve the procedure.<div class="codebox"><p>Code: </p><pre><code>set chanserv "chanserv@Services.dal.net"setudef flag chk.accessproc bot:checkop {nick host hand chan mode target} {  if {$target == $::botnick} {   if {[channel get $chan chk.access]} {     putserv "PRIVMSG $::chanserv :why $chan $nick" -next    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 21, 2006 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[K3rN3L_P4nIC]]></name></author>
		<updated>2006-11-21T17:20:28-04:00</updated>

		<published>2006-11-21T17:20:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68299#p68299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68299#p68299"/>
		<title type="html"><![CDATA[check my little tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68299#p68299"><![CDATA[
Hi again, this a new code:<div class="codebox"><p>Code: </p><pre><code>set chans_bop "*"set chanservices "ChanServ@services.dal.net"set commandwhy "WHY"set nickchans "Chanserv"set nickaops {"nick1""nick2""nick3""nicknn"}bind mode - "*+*o*" bot:checkop bind notc - "*" bot:checkwhy proc bot:checkop:checkop {nick host hand chan mode target} {  if {[string compare -nocase $::botnick $target] == 0} {return}  if {[string compare -nocase "ChanServ" $nick] != 0} {return}  putserv "CHANSERV WHY $chan $target" }proc bot:checkwhy {nick host hand text dest} {global botnick nickaops nickchansif {(([lsearch -exact [string tolower $chans_bop] [string tolower $chan]] != -1) || ($chans_bop == "*"))} { foreach nickaop $nickaops { if {([string match -nocase *$nickaop* $botnick])} {return}   foreach nickaop $nickaops { if {([string match -nocase *$nickaop* $nickchans])} {return}    foreach nickaop $nickaops { if {([string match -nocase *$nickaop* $nick])} {return} puthelp "PRIVMSG $nick :Ud, no esta usando su nick de AOP/SOP no esta permitido, se le dio el acceso a un nick determinado, por favor cambiese de nick" putquick "MODE $chan +b $nick" putquick "KICK $chan $nick :Pongase su nick de OP"   }  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8397">K3rN3L_P4nIC</a> — Tue Nov 21, 2006 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-11-19T13:58:09-04:00</updated>

		<published>2006-11-19T13:58:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68222#p68222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68222#p68222"/>
		<title type="html"><![CDATA[check my little tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68222#p68222"><![CDATA[
Begin with properly indenting the code.<br><br>And your foreach's don't appear to be right at all.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Nov 19, 2006 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[K3rN3L_P4nIC]]></name></author>
		<updated>2006-11-18T16:56:43-04:00</updated>

		<published>2006-11-18T16:56:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68198#p68198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68198#p68198"/>
		<title type="html"><![CDATA[check my little tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68198#p68198"><![CDATA[
This scrip intention is a kickban and msg to any nick obtains op from my channel, the nick obtain @ is different to nick access op, for example:<br>Nick access op official is Jagger, but the boy entry on chan using other nick then bot baned this nick. This is the code:<br><div class="codebox"><p>Code: </p><pre><code>set chanservices "ChanServ@services.dal.net"set commandwhy "WHY"set nickchans "Chanserv"set nickaops {"nick1""nick2""nick3""nicknn"}bind mode - "#iquitos +o" bot:checkop bind notc - "*" bot:checkwhy proc bot:checkop {nick host hand chan mode target} {global chanservices commandwhy nickchans if {[string compare -nocase $::botnick $target] == 0} {return}  if {[string compare -nocase $nickchans $nick] != 0} {return}  putserv "PRIVMSG $chanservices :$commandwhy $chan $target" } proc bot:checkwhy {nick host hand text dest} {global nickaops foreach nickaop $nickaops { if {([string match -nocase *$nickaop* $nick])} {return} if {[string compare -nocase "ChanServ" $nick] !=0} {return}  foreach nickaop $nickaops { if {([string match -nocase *$nickaop* $nick])} {return} puthelp "PRIVMSG $nick :You are using a nick no equal to nick access on the chan" putquick "MODE $chan +b $nick" putquick "KICK $chan $nick :Change your nick and rejoin"}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8397">K3rN3L_P4nIC</a> — Sat Nov 18, 2006 4:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
