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

	<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>2010-07-15T22:09:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-07-15T22:09:04-04:00</updated>

		<published>2010-07-15T22:09:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93556#p93556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93556#p93556"/>
		<title type="html"><![CDATA[Problem where isop always returns true]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93556#p93556"><![CDATA[
I see that no one has replied yet.  Perhaps that is due to all the German...  I really don't know.    ( I don't speak German either)<br><br>I'm not really sure what is wrong, or why the result is always the same.<br><br>Just for fun, (and to be sure) I copied a piece of your code, and made only two small changes.  You can spot them easily:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "!checkme" checkchannelproc checkchannel {nickname uhost handle channame text} {           if {![isop $nickname $channame]} {           putserv "PRIVMSG $channame :Anforderung fehlgeschlagen. \002$nickname\002 ist kein Operator."           putserv "NOTICE $nickname :Anforderung fehlgeschlagen. Du bist kein Operator in \002$channame\002."        #   channel remove $channame           putlog "\[\002Join Request\002\] fehlgeschlagen! \002$nickname\002 ist kein Operator in \002$channame\002."            } else {                   putserv "PRIVMSG $channame :Anforderung erfolgreich."                   putlog "\[\002Join Request\002\] erfolgreich von \002$nickname\002 für \002$channame\002."           }}</code></pre></div>I ran the above simple code, and it seemed to work fine.  That is, I got<br>different results, if I was op'd or not op'd, when I sent the public command.<br>In other words - it works.    Try it on yours, just to see if it works on yours.<br><br>I wonder if it is possible that it might behave differently on different servers?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 15, 2010 10:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[diskman1]]></name></author>
		<updated>2010-07-12T17:57:14-04:00</updated>

		<published>2010-07-12T17:57:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93518#p93518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93518#p93518"/>
		<title type="html"><![CDATA[Problem where isop always returns true]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93518#p93518"><![CDATA[
Hi,<br>I have a small problem with the fallowing invite Script:<br><div class="codebox"><p>Code: </p><pre><code>bind raw - INVITE join:inviteproc join:invite {nickname key arg} {       set channame [lindex [split $arg :] 1]       if {[validchan $channame] || $channame == "#somechan" || $channame == "#other-chan"} {          putlog "\[\002Join Request\002\] fehlgeschlagen! Channel \002$channame\002 bereits vorhanden. Anforderung von \002$nickname\002."          } else {                 channel add $channame                 set klnick [split $nickname "!"] ;# hostmask beim ! splitten                 set nick [lindex $klnick 0]      ;# davon das erste element -&gt; nur der nick                 utimer 20 [list checkchannel $nick $channame]  ;# 20 sekunden warten bis der bot den channel komplett 'eingelesen' hat                                                                ;# wird nicht lange genug gewartet gibt in  checkchannel die isop funktion false zurück weil noch keine daten vorhanden          }}proc checkchannel {nickname channame} {           if {![isop $nickname $channame]} {           putserv "PRIVMSG $channame :Anforderung fehlgeschlagen. \002$nickname\002 ist kein Operator."           putserv "NOTICE $nickname :Anforderung fehlgeschlagen. Du bist kein Operator in \002$channame\002."           channel remove $channame           putlog "\[\002Join Request\002\] fehlgeschlagen! \002$nickname\002 ist kein Operator in \002$channame\002."            } else {                   putserv "PRIVMSG $channame :Anforderung erfolgreich."                   putlog "\[\002Join Request\002\] erfolgreich von \002$nickname\002 für \002$channame\002."           }}</code></pre></div>so heres the scenario:<br>someone invites the bot into his channel (in my network also non-ops can invite somebody)<br>the bot adds the channel, and joins<br>after 20 seconds the function checkchannel is called.<br>checkchannel checks wether the user who invited the bot is channel operator or not.<br><br>Heres the Problem.<br>The bot always stays inside the channel and prints out "Anforderung erfolgreich"<br><br>There is also a !part function, which also checks the op status via isop.<br>This Function can also be called from everyone on the channel. The bot dont cares about the op status.<br>After the join everyone is recorgnized as operator unless he parts and rejoins the channel.<br><br>I tried to let the bot part and check afterwards but nothings changed.<br>I also tried the resetchan function to re-read the channel ops, but this also changed nothing.<br><br>I cant explain why everyone is recorgnized as channel operator... if i manually let the bot part the channel by .dump part #channel the problem seems to go away.<br>but thats not a solution <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Hope anyone can help me... i tried to search the forum for related topics... there is a similar script but it doesnt check for chanops.<br><br>Greetings,<br><br>diskman<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11284">diskman1</a> — Mon Jul 12, 2010 5:57 pm</p><hr />
]]></content>
	</entry>
	</feed>
