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

	<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>2001-12-22T21:01:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-22T21:01:00-04:00</updated>

		<published>2001-12-22T21:01:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3063#p3063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3063#p3063"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3063#p3063"><![CDATA[
No, I just don;t spend 24 hours a day at the computerm, like so many people think.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Dec 22, 2001 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-22T02:38:00-04:00</updated>

		<published>2001-12-22T02:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3032#p3032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3032#p3032"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3032#p3032"><![CDATA[
ppslim, you missed out here?<p>Statistics: Posted by Guest — Sat Dec 22, 2001 2:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-21T04:04:00-04:00</updated>

		<published>2001-12-21T04:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2990#p2990</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2990#p2990"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2990#p2990"><![CDATA[
Ok, so, which way do you recommend? By binding to - or (some|flags)?<br><br>Eh-heh.. regarding the incr copc, it doesn't seems to work at all. Any changes for that? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":razz:" title="Razz"><br><br>Thanks<br><br>&lt;font size=-1&gt;[ This Message was edited by: Stafford on 2001-12-21 06:05 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Fri Dec 21, 2001 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-20T21:27:00-04:00</updated>

		<published>2001-12-20T21:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2976#p2976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2976#p2976"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2976#p2976"><![CDATA[
How would I modify this:<div class="codebox"><p>Code: </p><pre><code>#####.opall - op's you on all channels the bot is onbind dcc o opall dcc_opallproc dcc_opall {handle idx arg} {set nick [lindex $arg 0]if {$nick == ""} {putlog "#$handle# opall"putdcc $idx "[Faze.h] Please see [b].time opall[b]"return 0}foreach ch [channels] {putserv "MODE $ch +o $nick"}dccbroadcast "!dcc opall! $nick by $handle"putlog "#$handle# opall $nick"putlog "[Faze.n] Gave [b]op[b] to [b]$nick[b] on all channels."return 0}</code></pre></div>So it only OP's a user if they do not already have OP's? As of now, it OP's the user in every channel they are in, regardless of whether or not they have OP's already.<br><br>Also, is there a way to add an if statement in there, so global +m can use the command on others, but global +o can only use it on themselves, regardless if they enter a nick or not? Right now, it works so any global op can use the command, and can enter any nickname to give anyone op's.<br><br>Thanks<p>Statistics: Posted by Guest — Thu Dec 20, 2001 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-20T12:57:00-04:00</updated>

		<published>2001-12-20T12:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2964#p2964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2964#p2964"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2964#p2964"><![CDATA[
<blockquote class="uncited"><div>if {($opmecom == "") &amp;&amp; ([matchattr $hand omnpcbt]) || ([matchattr $hand omnpcbt $chan] == 1) &amp;&amp; ([string match #* $arg] == 0)} {<br>set copc 0<br>foreach c [channels] {<br>if {[onchan $nick $c]} {<br>pushmode $c +o $nick<br>incr copc<br>}<br>}<br>if {$copc} {<br>puthelp "NOTICE $nick :** Opped you on $copc channels."<br>}<br>}</div></blockquote>OK - A couple of issues after fixing this.<br><br>You should read up on what each global, and channel user flag is.<br><br>Matching against "omnpcbt" as the flags is not very secure. +t flag - This means that a botnet master (some1 witht he rights to link bots, not gain ops).<br><br>Note, you state, that the user should have either channel flags, or global flags to gain OPS in all channels. This means, that some1 who has been given channel OP's in one channel, can gain OP's in another channel, regardless of his flags.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Dec 20, 2001 12:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-20T07:04:00-04:00</updated>

		<published>2001-12-20T07:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2958#p2958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2958#p2958"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2958#p2958"><![CDATA[
Hehe. Ok, let's wait till you're "normal" <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":razz:" title="Razz"><p>Statistics: Posted by Guest — Thu Dec 20, 2001 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-20T01:12:00-04:00</updated>

		<published>2001-12-20T01:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2953#p2953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2953#p2953"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2953#p2953"><![CDATA[
YUK - I juest noticed, that script is trying to OP the nick, only if he isn;t on the channel.<br><br>I won't dare write any code to replace it now, not until the drink wears off (yes, I'm drunk, you wanna make somthign of it)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Dec 20, 2001 1:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-19T23:59:00-04:00</updated>

		<published>2001-12-19T23:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2946#p2946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2946#p2946"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2946#p2946"><![CDATA[
ppslim, it doesn't seems to fix the problem. When I add<blockquote class="uncited"><div>if {$copc} {</div></blockquote>There's no respond from the bot. It doesn't reply to the command used. However, if I remove<blockquote class="uncited"><div>if {[onchan $nick $c]} {</div></blockquote>It doesn't count properly again. Any ideas?<p>Statistics: Posted by Guest — Wed Dec 19, 2001 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-19T11:06:00-04:00</updated>

		<published>2001-12-19T11:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2937#p2937</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2937#p2937"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2937#p2937"><![CDATA[
Move the puthelp command down one line, and add.<br><blockquote class="uncited"><div>if {$copc} {</div></blockquote>above it, and of course, the usual } below the puthelp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Dec 19, 2001 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-19T02:52:00-04:00</updated>

		<published>2001-12-19T02:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2931#p2931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2931#p2931"/>
		<title type="html"><![CDATA[Couldn't count properly.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2931#p2931"><![CDATA[
Hi, I've got this code and I hope someone could help me out with it.<br><blockquote class="uncited"><div>if {($opmecom == "") &amp;&amp; ([matchattr $hand omnpcbt]) || ([matchattr $hand omnpcbt $chan]) == 1 &amp;&amp; ([string match #* $arg]) == 0} {<br>    set copc 0<br>    foreach c [channels] {<br>      if {[onchan $nick $c] == 0} {<br>    pushmode $c +o $nick<br>    incr copc<br>   }<br>  }<br>    puthelp "NOTICE $nick :** Opped you on $copc channels."</div></blockquote>It works fine if the user is on all channels the eggdrop is in. However, if the user is not on 1 of the channel the eggdrop is in, the part "incr copc" couldn't count properly. It would give the 'puthelp' notice saying it had opped the user in (a number of channel) when the user uses the command even the user is not in the channel. Any ideas?<p>Statistics: Posted by Guest — Wed Dec 19, 2001 2:52 am</p><hr />
]]></content>
	</entry>
	</feed>
