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

	<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>2008-09-11T16:35:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-09-11T16:35:08-04:00</updated>

		<published>2008-09-11T16:35:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85125#p85125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85125#p85125"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85125#p85125"><![CDATA[
I have this kind of error <br>[23:33] Tcl error [check:deop]: invalid command name "б═"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Thu Sep 11, 2008 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-03-20T11:04:02-04:00</updated>

		<published>2008-03-20T11:04:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81926#p81926</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81926#p81926"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81926#p81926"><![CDATA[
Well it works thanks to all for help'ing me <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=9685">CyberWar</a> — Thu Mar 20, 2008 11:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-19T22:12:07-04:00</updated>

		<published>2008-03-19T22:12:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81918#p81918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81918#p81918"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81918#p81918"><![CDATA[
<blockquote class="uncited"><div>Well this script is awesome speechles<br><br>Now i have one question. I will tell u my problem.<br><br>The Bot Seen is op in a channel. e.g. #bla<br>Then if i deop Seen he give me a privmsg in my query: &lt;Seen&gt; .opme #bla<br><br>That was my test.<br><br>Now we have an another Bot with oline. <br><br>If someone deop Seen he dont write to this Bot with oline. why?<br><br>Here is my currently Script<br><div class="codebox"><p>Code: </p><pre><code>variable alertnicks "HeliBot CyberWar"bind mode - *-o* check:deopproc check:deop {nick uhost hand chan mc victim} {  if {[isbotnick $victim]} {    foreach n [split $::alertnicks] {      if {[isop $n $chan]} {        set deopflag 1        if {[llength [split $::alertnicks]] &gt; 3} {          puthelp "PRIVMSG $nick :.opme $chan"        } else {          putserv "PRIVMSG $nick :.opme $chan"        }      }    }    if {![info exists deopflag]} {      putserv "privmsg #botsynch :\[automated message\] $nick has broken the rules on $chan by deopping me."    }  }}</code></pre></div>Seen write only to me a privmsg i've tested with some another guys on our irc. But the bot write only me not HeliBot or the another test users.</div></blockquote>it's this line: if {[isop $n $chan]} {<br>That tells the bot don't even bother asking an unopped person in that channel for ops, even if they are on the list. Read below this part of the original script (you shortened it without realizing what it said).<div class="codebox"><p>Code: </p><pre><code>    # if there is nobody from the alertnicks list    # in the channel with ops, let's not ask them    # for ops, they can't help. let's instead make a    # public channel announcement about it.    if {![info exists deopflag]} {      putserv "privmsg $chan :\[automated message\] $nick has broken the rules on $chan by deopping me. There is \               no one in my list with ops that I can ask to op me. I am making this public message in the hopes \               someone will op me. Thank you."    } </code></pre></div><blockquote class="uncited"><div>If i write in the partyline: <blockquote class="uncited"><div>.msg Helibot .opme #bla</div></blockquote> then it works<br><br>Whats the Problem? </div></blockquote>The problem is the difference between what your doing and what the script can. Your using an direct client connection (dcc) command, while the script uses an internet relayed one (privmsg). If you have commands available to op through that oline'd bot using private message, the script can be adapted for that quite easily.<blockquote class="uncited"><div>i have one error in the partyline: <div class="codebox"><p>Code: </p><pre><code>[13:25] Tcl error [log:mode]: wrong # args: should be "log:mode nick uhost hand channel text"</code></pre></div></div></blockquote>That would be tueb's script. That code is expecting an older version of eggdrop. On newer eggdrops you get that error about arguments not matching parameters. Just unload that script. Then op Helibot and your other friends in the alertnicks list and try again. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>*** Note: It's also acceptable to KEEP comments in the script, they act as notes to help the next time you make modifications. Others wishing to (and yourself later when you forget what parts of your code do..heh) can learn from your commented code and understand it based upon the comments explaining its expected behavior. When I see people strip them completely it leaves tears in my eyes... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Mar 19, 2008 10:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-03-19T21:53:51-04:00</updated>

		<published>2008-03-19T21:53:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81917#p81917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81917#p81917"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81917#p81917"><![CDATA[
I hope someone see my problem i've tested yesterday 8hours<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Wed Mar 19, 2008 9:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-03-19T08:32:54-04:00</updated>

		<published>2008-03-19T08:32:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81904#p81904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81904#p81904"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81904#p81904"><![CDATA[
Well this script is awesome speechles<br><br>Now i have one question. I will tell u my problem.<br><br>The Bot Seen is op in a channel. e.g. #bla<br>Then if i deop Seen he give me a privmsg in my query: &lt;Seen&gt; .opme #bla<br><br>That was my test.<br><br>Now we have an another Bot with oline. <br><br>If someone deop Seen he dont write to this Bot with oline. why?<br><br>Here is my currently Script<br><div class="codebox"><p>Code: </p><pre><code>variable alertnicks "HeliBot CyberWar"bind mode - *-o* check:deopproc check:deop {nick uhost hand chan mc victim} {  if {[isbotnick $victim]} {    foreach n [split $::alertnicks] {      if {[isop $n $chan]} {        set deopflag 1        if {[llength [split $::alertnicks]] &gt; 3} {          puthelp "PRIVMSG $nick :.opme $chan"        } else {          putserv "PRIVMSG $nick :.opme $chan"        }      }    }    if {![info exists deopflag]} {      putserv "privmsg #botsynch :\[automated message\] $nick has broken the rules on $chan by deopping me."    }  }}</code></pre></div>Seen write only to me a privmsg i've tested with some another guys on our irc. But the bot write only me not HeliBot or the another test users.<br><br>If i write in the partyline: <blockquote class="uncited"><div>.msg Helibot .opme #bla</div></blockquote> then it works<br><br>Whats the Problem? i have one error in the partyline: <div class="codebox"><p>Code: </p><pre><code>[13:25] Tcl error [log:mode]: wrong # args: should be "log:mode nick uhost hand channel text"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Wed Mar 19, 2008 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-03-18T05:52:58-04:00</updated>

		<published>2008-03-18T05:52:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81879#p81879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81879#p81879"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81879#p81879"><![CDATA[
Thank you very much guys <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> awesome both scripts works fine <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Tue Mar 18, 2008 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-17T15:55:34-04:00</updated>

		<published>2008-03-17T15:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81871#p81871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81871#p81871"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81871#p81871"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># --&gt; alertnicks# nicks to alert bot is deopped and to reop it# can be 1,2,3 or 50,000 nicks (MUST seperate each by a space)variable alertnicks "nick1 nick2 etc etc"bind mode - *-o* check:deopproc check:deop {nick uhost hand chan mc victim} {  if {[isbotnick $victim]} {    foreach n [split $::alertnicks] {       if {[isop $n $chan]} {        set deopflag 1        # if alertnicks is greater than 5, we use puthelp        # to avoid bot being flooded off irc.        if {[llength [split $::alertnicks]] &gt; 5} {          puthelp "privmsg $n :I \($victim\) have just been deopped in $chan by $nick. Please reop me."        } else {          putserv "privmsg $n :I \($victim\) have just been deopped in $chan by $nick. Please reop me."        }      }    }    # if there is nobody from the alertnicks list     # in the channel with ops, let's not ask them    # for ops, they can't help. let's instead make a    # public channel announcement about it.    if {![info exists deopflag]} {      putserv "privmsg $chan :\[automated message\] $nick has broken the rules on $chan by deopping me. There is \               no one in my list with ops that I can ask to op me. I am making this public message in the hopes \               someone will op me. Thank you."    }  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Mar 17, 2008 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tueb]]></name></author>
		<updated>2008-03-17T15:38:12-04:00</updated>

		<published>2008-03-17T15:38:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81869#p81869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81869#p81869"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81869#p81869"><![CDATA[
maybe this will work:<br><div class="codebox"><p>Code: </p><pre><code>bind mode - *o log:modeproc log:mode {nick uhost hand channel text} {global botnick if {$text == "-o $botnick"} {    putserv "PRIVMSG CyberWar :$nick deoped $botnick on $channel." }}</code></pre></div><br>there's most likely a better way than "$text == '-o $botnick'". unfortunately i don't know it.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused">  <br><br>tueb<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9349">tueb</a> — Mon Mar 17, 2008 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CyberWar]]></name></author>
		<updated>2008-03-17T12:34:19-04:00</updated>

		<published>2008-03-17T12:34:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81863#p81863</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81863#p81863"/>
		<title type="html"><![CDATA[On deop Msg to me]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81863#p81863"><![CDATA[
Hi all<br><br>i have now some script about pub and binds and msg/notice. but how looks a script e.g.<br><br>Bot was deoped by Nick<br><br>Bot send a msg to me: I'm deoped on $channel please op me<br><br>i think it's very easy? but how i do that?<br><br>when someone set the bot -o he write a msg in my query<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9685">CyberWar</a> — Mon Mar 17, 2008 12:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
