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

	<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>2002-05-18T15:17:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-05-18T15:17:00-04:00</updated>

		<published>2002-05-18T15:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7041#p7041</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7041#p7041"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7041#p7041"><![CDATA[
The code is there to prevent the commands from crashing if the channel is removed .. <br><br>i.e.. <br><br>bind join - * blah<br>proc blah {nick uhost hand chan} {<br>  channel remove $chan<br>}<br><br>use to make the bot crash ..<br><br>I'll look at fixing need-* (need-op seems to work) sometime soon.<br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Sat May 18, 2002 3:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-17T23:00:00-04:00</updated>

		<published>2002-05-17T23:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7025#p7025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7025#p7025"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7025#p7025"><![CDATA[
You're right, I didn't investigate the differences between findchan and findchan_by_dname precisely. I made up my mind based on the comment in the proc from which I got that snip of code:<br><br>  /* We use dname because name is first set on JOIN and we might not<br>   * have joined the channel yet.<br>   */<br><br>So, if findchan_by_dname was used for a reason up above, stands to reason it should be used again since the bot is still in the same state.  And again, this code is completely unnecessary since chan is already set and verified:<br><br>  chan = findchan_by_dname(chname);<br>  if (chan) {<br>&lt;snip&gt;<br>  } else<br>  putlog(LOG_JOIN, chname, IRC_BADCHANKEY, chname);<br>  return 0;<br>}<br><br>If the code mentioned in my first post is removed need-key et al work again.  Whether or not findchan would work as well as findchan_by_dname I didn't test, but at the very least, findchan is used improperly since the variable chname is set with "!channel" for use by findchan_by_dname only.<br><br>It's all moot really, the code shouldn't even exist there.<br><br>-stu.<p>Statistics: Posted by Guest — Fri May 17, 2002 11:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-05-17T21:38:00-04:00</updated>

		<published>2002-05-17T21:38:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7023#p7023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7023#p7023"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7023#p7023"><![CDATA[
Do you even know what findchan and findchan_by_dname do? Sure doesn't sound like you do -- findchan doesn't care if the bot is on or off the channel, it does care though if the bot knows about the channel. That type of code was added to prevent the bot from crashing when people remove a channel via a bind. <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Fri May 17, 2002 9:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-17T18:54:00-04:00</updated>

		<published>2002-05-17T18:54:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7016#p7016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7016#p7016"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7016#p7016"><![CDATA[
Hi,<br><br>Most of the need-* functions (key, unban, limit, invite) are broken in 1.6.10, there's some new code inserted in them:<br><br>from src/mod/irc.mod/chan.c:<br><br>      chan = findchan(chname); <br>      if (!chan)<br>        return 0;<br><br>This code has been added right before the tcl in the need-* settings is executed.  First of all, chan is already correctly set, so this code is totally unnecessary.  Secondly, it's also wrong, since the bot is not in the channel when it's requesting the key or limit. Thus findchan won't see it, findchan_by_dname would have to be used.<br><br>Also, need-op seems to function normally.<br><br>-stu.<p>Statistics: Posted by Guest — Fri May 17, 2002 6:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masskilla]]></name></author>
		<updated>2002-05-16T04:13:00-04:00</updated>

		<published>2002-05-16T04:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6961#p6961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6961#p6961"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6961#p6961"><![CDATA[
Could be, only thing I changed was that I used puthelp instead of putserv.<br>But putserv works just fine too.<br><br><br>_________________<br>MaSsKilla<br><br>#eggdrop<br>Undernet<br><br>&lt;font size=-1&gt;[ This Message was edited by: masskilla on 2002-05-16 02:19 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=105">masskilla</a> — Thu May 16, 2002 4:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-05-15T19:47:00-04:00</updated>

		<published>2002-05-15T19:47:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6953#p6953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6953#p6953"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6953#p6953"><![CDATA[
hmm, didnt when i last tested. maybe its an os/tcl library specfic problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed May 15, 2002 7:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masskilla]]></name></author>
		<updated>2002-05-15T18:40:00-04:00</updated>

		<published>2002-05-15T18:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6950#p6950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6950#p6950"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6950#p6950"><![CDATA[
<br>I just tested it in 1.6.10, works fine.<br><br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=105">masskilla</a> — Wed May 15, 2002 6:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-05-15T07:00:00-04:00</updated>

		<published>2002-05-15T07:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6932#p6932</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6932#p6932"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6932#p6932"><![CDATA[
he's using 1.6.9 or 1.6.10 where someone broke need-op<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed May 15, 2002 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[masskilla]]></name></author>
		<updated>2002-05-15T04:02:00-04:00</updated>

		<published>2002-05-15T04:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6930#p6930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6930#p6930"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6930#p6930"><![CDATA[
Hi<br><br>Is the bot on that other channel? If not, does the channel have +n mode? If it's so, you can't message it from outside.<br><br><br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=105">masskilla</a> — Wed May 15, 2002 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-15T01:57:00-04:00</updated>

		<published>2002-05-15T01:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=6929#p6929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=6929#p6929"/>
		<title type="html"><![CDATA[Trying to get need-op to send message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=6929#p6929"><![CDATA[
I must be lame, I'm trying to get my bot to send a message to another channel when it needs op and it isn't working.  I did the following:<br><br>.chanset #channel need-op putserv "PRIVMSG #channel2 :!opnow"<br><br>I don't get any errors but I never see the !opnow message in #channel2.  What the hell am I doing wrong.<p>Statistics: Posted by Guest — Wed May 15, 2002 1:57 am</p><hr />
]]></content>
	</entry>
	</feed>
