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

	<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>2005-01-14T07:31:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2005-01-14T07:31:09-04:00</updated>

		<published>2005-01-14T07:31:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45383#p45383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45383#p45383"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45383#p45383"><![CDATA[
<blockquote class="uncited"><div>No problem, however I wouldn't know why you need such a script heh. Because its the 90% of the scripts we make on requests for other people here, we would be never using them ever as well I guess.</div></blockquote>heh... i even don't use my own aVote actually <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Fri Jan 14, 2005 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-14T04:03:06-04:00</updated>

		<published>2005-01-14T04:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45374#p45374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45374#p45374"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45374#p45374"><![CDATA[
No problem, however I wouldn't know why you need such a script heh. Because its the 90% of the scripts we make on requests for other people here, we would be never using them ever as well I guess.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Jan 14, 2005 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-01-14T03:50:13-04:00</updated>

		<published>2005-01-14T03:50:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45371#p45371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45371#p45371"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45371#p45371"><![CDATA[
n1 guys !!!!!!!<br><br>Big THX !!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Fri Jan 14, 2005 3:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2005-01-13T05:05:33-04:00</updated>

		<published>2005-01-13T05:05:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45340#p45340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45340#p45340"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45340#p45340"><![CDATA[
<blockquote class="uncited"><div>And remove this line as well it is not of much use:<br>  if {![validchan $chan1] || ![validchan $chan2] || ![validchan $chan3]} { return 0 }</div></blockquote>I'd leave that line in.<br>doesn't hurt to check for that, but will prevent getting errors.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Thu Jan 13, 2005 5:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-12T23:11:37-04:00</updated>

		<published>2005-01-12T23:11:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45337#p45337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45337#p45337"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45337#p45337"><![CDATA[
Only, use this:<br><br>if {![string equal -nocase $chan $chan3]} { return 0 }<br><br>Meaning, that you have to supply the trigger on channel3, the channel where you want to op the people on.<br><br>And remove this line as well it is not of much use:<br>  if {![validchan $chan1] || ![validchan $chan2] || ![validchan $chan3]} { return 0 }<br><br>I'd say we fix this up. Now the bot will only check if the trigger is on #chan3 (meaning bot is present on the #chan3) and if bot is opped on #chan3 and if the bot is present on all three channels (#chan1, #chan2, #chan3) - using negative logics, then only go ahead and run the script further. Try this:<br><br>(Also added a small peice of condition code to check if the nick is already opped on #chan3, then do not op it again)<br><div class="codebox"><p>Code: </p><pre><code>### Settings ####This will be the channel 1 where the opped users will be detected on.set chan1 "#op-channel1"#This will be the channel 2 where the opped users will be detected on.set chan2 "#op-channel2"#This will be the channel to op the people on.set chan3 "#trigger-channel"### Don't edit anything below this! ###bind join - * scan:ops proc scan:ops {nick uhost hand chan} { global botnick chan1 chan2 chan3  if {![string equal -nocase $chan $chan3] || ![botisop $chan3]} { return 0 }  if {![botonchan $chan1] || ![botonchan $chan2] || ![botonchan $chan3]} { return 0 }  putserv "PRIVMSG $chan1 :Scanning $chan1..."; set oplist [list]  foreach user [chanlist $chan1] {   if {[onchan $user $chan1] &amp;&amp; [onchan $user $chan3] &amp;&amp; ![isop $user $chan3]} {    lappend oplist $user    }   }   putserv "PRIVMSG $chan1 :Scanning completed for $chan1."   if {([llength $oplist] &gt;= 1) &amp;&amp; ([botisop $chan3])} {   putserv "PRIVMSG $chan1 :Opping all users on $chan1 to $chan3."    foreach person $oplist {     pushmode $chan3 +o $person    }    flushmode $chan3    putserv "PRIVMSG $chan1 :Nick(s) [join $oplist {, }] on $chan1 have been successfully opped on $chan3.  }  putserv "PRIVMSG $chan2 :Now scanning $chan2..."; set newoplist [list]  foreach newuser [chanlist $chan2] {   if {[onchan $newuser $chan2] &amp;&amp; [onchan $newuser $chan3] &amp;&amp; ![isop $newuser $chan3]} {    lappend newoplist $newuser    }   }   putserv "PRIVMSG $chan2 :Scanning completed for $chan2."   if {([llength $newoplist] &gt;= 1) &amp;&amp; ([botisop $chan3])} {   putserv "PRIVMSG $chan1 :Now opping all users on $chan2 to $chan3."    foreach newperson $newoplist {     pushmode $chan3 +o $newperson    }    flushmode $chan3    putserv "PRIVMSG $chan2 :Nick(s) [join $newoplist {, }] on $chan2 have been successfully opped on $chan3.  } unset oplist; unset newoplist; return 0} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jan 12, 2005 11:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2005-01-12T15:37:09-04:00</updated>

		<published>2005-01-12T15:37:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45330#p45330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45330#p45330"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45330#p45330"><![CDATA[
awyeah's script only checks for op in $chan3.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Wed Jan 12, 2005 3:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-01-11T08:46:10-04:00</updated>

		<published>2005-01-11T08:46:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45270#p45270</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45270#p45270"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45270#p45270"><![CDATA[
<blockquote class="uncited"><div>change the "||"s to "&amp;&amp;".<br>otherwise it would only work if chan1 == chan2 == chan3 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>That was it....<br><br>But the Bot is only checking when he`s opped in every channel. Hmm.... how can i fix that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Tue Jan 11, 2005 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2005-01-11T08:22:40-04:00</updated>

		<published>2005-01-11T08:22:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45269#p45269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45269#p45269"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45269#p45269"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>  if {![string equal -nocase $chan $chan1] || ![string equal -nocase $chan $chan2] || ![string equal -nocase $chan $chan3]} { return 0 } </code></pre></div>change the "||"s to "&amp;&amp;".<br>otherwise it would only work if chan1 == chan2 == chan3 <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=2617">arcane</a> — Tue Jan 11, 2005 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-01-10T11:07:22-04:00</updated>

		<published>2005-01-10T11:07:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45239#p45239</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45239#p45239"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45239#p45239"><![CDATA[
<blockquote class="uncited"><div>How come it doesn't perform anything? You do not get the channel messages, stating.. "Scanning...." or "Opping all users...." ??</div></blockquote>It`s sad but true. No errors and no messages at all.  Sry, but its the truth!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Mon Jan 10, 2005 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-10T08:00:04-04:00</updated>

		<published>2005-01-10T08:00:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45227#p45227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45227#p45227"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45227#p45227"><![CDATA[
Yeah, I missed the quotation marks in a hurry. Simple syntax errors should be fixed and identified with no problem. However as for the script what error do you get?<br><br>How come it doesn't perform anything? You do not get the channel messages, stating.. "Scanning...." or "Opping all users...." ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jan 10, 2005 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-01-10T04:26:42-04:00</updated>

		<published>2005-01-10T04:26:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45221#p45221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45221#p45221"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45221#p45221"><![CDATA[
<blockquote class="uncited"><div>Yes it is possible todo so. I beleive I made the script let's see if we can alter it. I beleive this will do it:<br><div class="codebox"><p>Code: </p><pre><code>    putserv "PRIVMSG $chan1 :Nick(s) [join $oplist {, }] on $chan1 have been successfully opped on $chan3."  }  </code></pre></div></div></blockquote>Thx awyeah 4 helping ...<br>Beside the 2 missing " at the End of both putserv Lines, somehow the script isn`t doing something. :-/<br><br>Greetz<br>overfly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Mon Jan 10, 2005 4:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-09T22:38:12-04:00</updated>

		<published>2005-01-09T22:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45207#p45207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45207#p45207"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45207#p45207"><![CDATA[
Yes it is possible todo so. I beleive I made the script let's see if we can alter it. I beleive this will do it:<br><div class="codebox"><p>Code: </p><pre><code>### Settings ####This will be the channel 1 where the opped users will be detected on.set chan1 "#opchannel"#This will be the channel 2 where the opped users will be detected on.set chan2 "#channel1"#This will be the channel to op the people on.set chan3 "#channel2"### Don't edit anything below this! ###bind join - * scan:opsproc scan:ops {nick uhost hand chan} { global botnick chan1 chan2 chan3  if {![validchan $chan1] || ![validchan $chan2] || ![validchan $chan3]} { return 0 }  if {![string equal -nocase $chan $chan1] || ![string equal -nocase $chan $chan2] || ![string equal -nocase $chan $chan3]} { return 0 }  putserv "PRIVMSG $chan1 :Scanning $chan1..."; set oplist [list]  foreach user [chanlist $chan1] {   if {[onchan $user $chan1] &amp;&amp; [onchan $user $chan3]} {    lappend oplist $user    }   }   putserv "PRIVMSG $chan1 :Scanning completed for $chan1."   if {([llength $oplist] &gt;= 1) &amp;&amp; ([botisop $chan3])} {   putserv "PRIVMSG $chan1 :Opping all users on $chan1 to $chan3."    foreach person $oplist {     pushmode $chan3 +o $person    }    flushmode $chan3    putserv "PRIVMSG $chan1 :Nick(s) [join $oplist {, }] on $chan1 have been successfully opped on $chan3.  }  putserv "PRIVMSG $chan2 :Now scanning $chan2..."; set newoplist [list]  foreach newuser [chanlist $chan2] {   if {[onchan $user $chan2] &amp;&amp; [onchan $user $chan3]} {    lappend newoplist $newuser    }   }   putserv "PRIVMSG $chan2 :Scanning completed for $chan2."   if {([llength $newoplist] &gt;= 1) &amp;&amp; ([botisop $chan3])} {   putserv "PRIVMSG $chan1 :Now opping all users on $chan2 to $chan3."    foreach newperson $newoplist {     pushmode $chan3 +o $newperson    }    flushmode $chan3    putserv "PRIVMSG $chan2 :Nick(s) [join $newoplist {, }] on $chan2 have been successfully opped on $chan3.  } unset oplist; unset newoplist; return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jan 09, 2005 10:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[overfly]]></name></author>
		<updated>2005-01-07T06:06:29-04:00</updated>

		<published>2005-01-07T06:06:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45114#p45114</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45114#p45114"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45114#p45114"><![CDATA[
<blockquote class="uncited"><div>You can try to add this to your code:<div class="codebox"><p>Code: </p><pre><code>bind join - * join:scan:opsproc join:scan:ops {nick uhost hand chan} {  scan:ops $nick $uhost $hand $chan ""}</code></pre></div></div></blockquote>When i do this, the Bot alway scans chan1 and chan2. How can I make him scan only chan1 ?<br><br>Is ist possible with this script to habe him scan chan1 &amp; chan2 and op these operators in channel3 ? So just to make it work for 2 Channels to scan?<br>Thx<br>Greetz<br>overfly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5865">overfly</a> — Fri Jan 07, 2005 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-12-02T06:06:02-04:00</updated>

		<published>2004-12-02T06:06:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43364#p43364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43364#p43364"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43364#p43364"><![CDATA[
You can try to add this to your code:<div class="codebox"><p>Code: </p><pre><code>bind join - * join:scan:opsproc join:scan:ops {nick uhost hand chan} {  scan:ops $nick $uhost $hand $chan ""}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Dec 02, 2004 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[saerd]]></name></author>
		<updated>2004-12-02T04:31:13-04:00</updated>

		<published>2004-12-02T04:31:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43362#p43362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43362#p43362"/>
		<title type="html"><![CDATA[Trasform &quot;Bind Pub&quot; in &quot;Bind Join&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43362#p43362"><![CDATA[
thanks for the fast replies!!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>i post the code (taken from this forum  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">  )<br><div class="codebox"><p>Code: </p><pre><code>### Settings ### #This will be the channel where the opped users will be detected on. set chan1 "#opchannel" #This will be the channel to op the people on. set chan2 "#chanforop" ### Don't edit anything below this! ### bind pub n !opscan scan:ops proc scan:ops {nick uhost hand chan text} {  global botnick chan1 chan2   if {(![validchan $chan1]) || (![validchan $chan2])} { return 0 }   if {(![string equal -nocase $chan $chan1]) || (![string equal -nocase $chan $chan2])} { return 0 }   putserv "PRIVMSG $chan1 :Scanning..."; set oplist [list]   foreach user [chanlist $chan1] {    if {([onchan $user $chan1]) &amp;&amp; ([onchan $user $chan2])} {     lappend oplist $user     }    }    putserv "PRIVMSG $chan1 :Scanning completed."    if {([llength $oplist] &gt;= 1) &amp;&amp; ([botisop $chan2])} {    putserv "PRIVMSG $chan1 :Opping all users on $chan1 to $chan2."     foreach person $oplist {      pushmode $chan2 +o $person     }     flushmode $chan2     putserv "PRIVMSG $chan1 :Nick(s) [join $oplist {, }] has/have been successfully opped on $chan2.   }  return 0 } </code></pre></div>i would that this scan "start" on join #CHAN1.<br><br>many thanks in advance <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=4548">saerd</a> — Thu Dec 02, 2004 4:31 am</p><hr />
]]></content>
	</entry>
	</feed>
