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

	<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>2004-10-01T13:03:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2004-10-01T13:03:36-04:00</updated>

		<published>2004-10-01T13:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41486#p41486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41486#p41486"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41486#p41486"><![CDATA[
thanks <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=5191">avilon</a> — Fri Oct 01, 2004 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-01T09:37:34-04:00</updated>

		<published>2004-10-01T09:37:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41482#p41482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41482#p41482"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41482#p41482"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {(![string equal -nocase $chan $chan1]) || (![string equal -nocase $chan $chan2])} { return 0 }</code></pre></div></div></blockquote>replace "||" with "&amp;&amp;"? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>Thank you! It's working perfectly alright now...  <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_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Fri Oct 01, 2004 9:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-01T08:41:52-04:00</updated>

		<published>2004-10-01T08:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41477#p41477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41477#p41477"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41477#p41477"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>if {(![string equal -nocase $chan $chan1]) || (![string equal -nocase $chan $chan2])} { return 0 }</code></pre></div></div></blockquote>replace "||" with "&amp;&amp;"? <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=2878">user</a> — Fri Oct 01, 2004 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-01T03:52:11-04:00</updated>

		<published>2004-10-01T03:52:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41474#p41474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41474#p41474"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41474#p41474"><![CDATA[
Hmm, hi, i try this tcl in my bot and sad to say, i found that it doesn't work although it doesn't display any error message... anyone got any similar script like this?  <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=5493">Stealthx</a> — Fri Oct 01, 2004 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-18T14:10:03-04:00</updated>

		<published>2004-07-18T14:10:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38770#p38770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38770#p38770"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38770#p38770"><![CDATA[
I'll try it out when I am free.<br>Which is not the case these days  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jul 18, 2004 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2004-07-16T18:03:57-04:00</updated>

		<published>2004-07-16T18:03:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38697#p38697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38697#p38697"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38697#p38697"><![CDATA[
<blockquote class="uncited"><div>I guess I would have to test/execute it out to find the problem.</div></blockquote>Thanks for your help. It would be nice if you found out the bug in this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Fri Jul 16, 2004 6:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-15T07:45:46-04:00</updated>

		<published>2004-07-15T07:45:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38655#p38655</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38655#p38655"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38655#p38655"><![CDATA[
Maybe any of the detected conditions is false, not true, so it might return 0, or halt. Would have to check that using putlogs... then it will be easy to check whats halting it.<br><br>Looking at it logically it seems, correct hmm.<br>I guess I would have to test/execute it out to find the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Jul 15, 2004 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[K]]></name></author>
		<updated>2004-07-15T05:43:01-04:00</updated>

		<published>2004-07-15T05:43:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38649#p38649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38649#p38649"/>
		<title type="html"><![CDATA[check]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38649#p38649"><![CDATA[
i have ckeck the script and<br>1. you forght a " at <div class="codebox"><p>Code: </p><pre><code>  putserv "PRIVMSG $chan1 :Nick(s) [join $oplist {, }] has/have been successfully opped on $chan2.</code></pre></div>2. don't work (don't work means no error message on dcc but if you do !opscan even no message/error on dcc and the bot don't do nothing)<br>here is the script with the missing "<div class="codebox"><p>Code: </p><pre><code>### Settings ### #This will be the channel where the opped users will be detected on. set chan1 "#sibiu" #This will be the channel to op the people on. set chan2 "#talmaciu" ### 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><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4489">K</a> — Thu Jul 15, 2004 5:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-13T22:06:54-04:00</updated>

		<published>2004-07-13T22:06:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38601#p38601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38601#p38601"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38601#p38601"><![CDATA[
Well this is not a hard thing to do.<br><br>What you can do is make a script, to first check users on your opped channel, match them with users on the other chan, then add them to a list, and using pushmode or putserv whatever you can op them.<br><br>Now the thing is you might want to trigger this with a pub bind, as there is not other manual way to do it. Or you can trigger it on +o of #channel1 if you like as well.<br><br>*** For *** this to work, the bot MUST be on both channels, and it must be opped on #channel2, so it can retrieve the user lists of both channels, compare them and make a seperate list to op the users.<br><br>I am not sure, but something like this should definately work:<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>So this will work with anyone (mainly the bot owner) with flag "n", types <strong class="text-strong">!opscan</strong> on any one of the two channels. Then the bot will detect opped users from channel1 and op those users on channel2.<br><br>I haven't tested it though, but I think it will work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> no doubt!<br>Give this script a try and let me know  <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=4875">awyeah</a> — Tue Jul 13, 2004 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2004-07-13T07:49:00-04:00</updated>

		<published>2004-07-13T07:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38554#p38554</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38554#p38554"/>
		<title type="html"><![CDATA[scan and op]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38554#p38554"><![CDATA[
Hey guys,<br><br>i´m looking for a .tcl-script.<br><br>Let me explain the situation first:<br><br>I have 2 channels, eg. #chan1 &amp; #chan2.<br>#chan1 is the public channel and #chan2 the closed(k) one.<br>So I need a script that makes the bot op all users in #chan1 that are in the closed #chan2.<br><br>The bot has op in both channels and he should react on the command: !opscan<br><br>At the end it should look like this:<br><blockquote class="uncited"><div> <strong class="text-strong">In #chan2:</strong><br>Users: @avilon,@mybot,@userxy<br>(12:50:14) (@avilon) !opscan<br>(12:50:14) (@mybot) Scanning...<br>(12:50:14) (@mybot) Scanning completed.<br><br><strong class="text-strong">In #chan1:</strong><br>Users: @avilon,@mybot,+userxy<br>(12:50:14) • mybot sets mode (+o userxy)</div></blockquote>Please don´t reply like "Take a look at the script archive"...  I haven´t found anything comparable.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Tue Jul 13, 2004 7:49 am</p><hr />
]]></content>
	</entry>
	</feed>
