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

	<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-07-08T18:14:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-07-08T18:14:38-04:00</updated>

		<published>2004-07-08T18:14:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38366#p38366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38366#p38366"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38366#p38366"><![CDATA[
Caveman,<br><br>If what you had already works, then why are you even asking for help?? I don't get it.<br><br>Also, if you really did add <strong class="text-strong">global $botnick</strong> that is also wrong...<br><br>Now here's the thing. What you have does (or should) work, but since $botnick is blank, it should work with any text, not just the bot's nick. Have you tested that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jul 08, 2004 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-07-08T16:02:08-04:00</updated>

		<published>2004-07-08T16:02:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38363#p38363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38363#p38363"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38363#p38363"><![CDATA[
/me makes popcorn<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jul 08, 2004 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cavemanm85de]]></name></author>
		<updated>2004-07-08T15:57:41-04:00</updated>

		<published>2004-07-08T15:57:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38362#p38362</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38362#p38362"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38362#p38362"><![CDATA[
lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5161">Cavemanm85de</a> — Thu Jul 08, 2004 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-08T15:55:56-04:00</updated>

		<published>2004-07-08T15:55:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38361#p38361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38361#p38361"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38361#p38361"><![CDATA[
"has" and "have" are spelled correctly, and if you are attempting to insinuate that their usage is incorrect, you would be wrong. "has" goes hand in hand with "person", and "have" goes hand in hand with "their".<br>Again, thanks for coming out.<br><br>Furthermore, it is not arrogance, it is confidence in knowing that your solution provided in this thread is incorrect, regardless of what system you are running it on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jul 08, 2004 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cavemanm85de]]></name></author>
		<updated>2004-07-08T15:49:30-04:00</updated>

		<published>2004-07-08T15:49:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38360#p38360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38360#p38360"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38360#p38360"><![CDATA[
There we go again... (Hint: check the bold words in my post)<br><br>On my system it works like I described above, but you keep telling that it doesn't. If that is not arrogance, I do not know what else it is.<br><br>Anyhow this is my last post in this thread as we are on different ends.<br>You keep telling 'this does not work' and I SEE it running. If it does not work on your system, that's your Problem, not mine.<br>As for arrogance, you may want to put a warning sticker on this, ok. But just telling people 'this will not work' without even knowing anything about my system where it works is a step further than plain arrogance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5161">Cavemanm85de</a> — Thu Jul 08, 2004 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-08T15:36:02-04:00</updated>

		<published>2004-07-08T15:36:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38358#p38358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38358#p38358"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38358#p38358"><![CDATA[
<blockquote class="uncited"><div>BTW, since you were already so nice and correct my spelling you should make sure that your own is correct.</div></blockquote> This again.. I did not correct your spelling, I corrected the word you were using.... you spelled "mood" correct, but that was not the word for which you were looking to use, and as such, made the sentences you were writing incomprehensible.  As for my own spelling, I did not from what I can tell make any spelling mistakes, but thanks for coming out.<br><blockquote class="uncited"><div>You may be an admin/owner/whatever on this board and you may have a lot of work with it, granted, but you seem to be very arrogant if one does not believe you or if you do not believe some one. I have seen many people getting to this point <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> it's part of the 'burn-out-syndrom'.[/b]</div></blockquote>  It's not arrogance, it is the fact that I don't want users with similar problems in the future reading this and thinking they'll fix it by using your incorrect solution, because it <strong class="text-strong">won't</strong> work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jul 08, 2004 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cavemanm85de]]></name></author>
		<updated>2004-07-08T03:20:50-04:00</updated>

		<published>2004-07-08T03:20:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38337#p38337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38337#p38337"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38337#p38337"><![CDATA[
<blockquote class="uncited"><div>The <strong class="text-strong">person</strong> in question <strong class="text-strong">has</strong> either been rehashing their bot, or <strong class="text-strong">have</strong> changed their code from their original post and <strong class="text-strong">have</strong> not displayed those changes</div></blockquote>Thank you very much.<br>Without knowing anything about me you just assume that.<br>If I knew you I'd either be very pissed or amused about this accusation.<br><br><strong class="text-strong">I did not change the code, except inserting 'global $botnick', and I do not rehash the eggdrop to get it to work</strong><br><br>Please. Just because something does work and you have no explanation for it, lay off accusing others.<br>If you can not accept it any other way you have my condolence...<br><br>BTW, since you were already so nice and correct my spelling you should make sure that your own is correct.<br>You may be an admin/owner/whatever on this board and you may have a lot of work with it, granted, but you seem to be very arrogant if one does not believe you or if you do not believe some one. I have seen many people getting to this point <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> it's part of the 'burn-out-syndrom'.[/b]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5161">Cavemanm85de</a> — Thu Jul 08, 2004 3:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-07T19:10:34-04:00</updated>

		<published>2004-07-07T19:10:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38329#p38329</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38329#p38329"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38329#p38329"><![CDATA[
<blockquote class="uncited"><div>I think I did not make very clear *sigh*<br><br>Without 'global' the bind gets executed if someone says 'shut up' with the 'global' it only gets executed with 'botnick shut up'.<br>Now if $botnick was *blank* this would not happen.<br><br>That is my problem. I see your reasoning but I also see the way eggdrop reacts.<br><br>You keep saying botnick is not set when the binds get read therefor it must be "blank". <br>Strange is, that it works right after starting up the bot and only if I have the 'global' set.<br><br>As for telling me 'it's not working' ... *shrugs*<br><br>QED. It *IS* working (right after starting the bot without rehashing) even though no one seems to know why.<br><br>/case closed; points go to gb for the tip .)</div></blockquote>For future readers, please do not assume this solution to be correct, because it is NOT.  The person in question has either been rehashing their bot, or have changed their code from their original post and have not displayed those changes, which would be the real reason for why it would work.<br><br>The fact of the matter is, is that <strong class="text-strong">bind</strong> is a command like any other Tcl command, and when written outside a procedure (ie. in the global namespace/scope), it has access to global variables (all variables in the same scope as bind [any command] is being invoked from)... The command/procedure that is to be called from the event set up by the bind call has no effect on the previous bind declaration, and as such, declaring "global variable" from within that scope, will not make a difference on the binding itself.  Future readers with similar problems, see stdragon's or my own posts in this thread for the working solutions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Jul 07, 2004 7:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-07-07T04:58:13-04:00</updated>

		<published>2004-07-07T04:58:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38309#p38309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38309#p38309"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38309#p38309"><![CDATA[
Global <strong class="text-strong">$</strong>nick? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Wed Jul 07, 2004 4:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-07-06T21:50:24-04:00</updated>

		<published>2004-07-06T21:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38299#p38299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38299#p38299"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38299#p38299"><![CDATA[
Before connecting to a server you can use '$nick'<br><div class="codebox"><p>Code: </p><pre><code>global $nick</code></pre></div>And then use it in your tcl scripts.<br>This variable is already declared in your<br>eggdrop.conf file and is the bots nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 06, 2004 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cavemanm85de]]></name></author>
		<updated>2004-07-06T17:54:25-04:00</updated>

		<published>2004-07-06T17:54:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38291#p38291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38291#p38291"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38291#p38291"><![CDATA[
I think I did not make very clear *sigh*<br><br>Without 'global' the bind gets executed if someone says 'shut up' with the 'global' it only gets executed with 'botnick shut up'.<br>Now if $botnick was *blank* this would not happen.<br><br>That is my problem. I see your reasoning but I also see the way eggdrop reacts.<br><br>You keep saying botnick is not set when the binds get read therefor it must be "blank". <br>Strange is, that it works right after starting up the bot and only if I have the 'global' set.<br><br>As for telling me 'it's not working' ... *shrugs*<br><br>QED. It *IS* working (right after starting the bot without rehashing) even though no one seems to know why.<br><br>/case closed; points go to gb for the tip .)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5161">Cavemanm85de</a> — Tue Jul 06, 2004 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2004-07-06T17:25:18-04:00</updated>

		<published>2004-07-06T17:25:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38290#p38290</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38290#p38290"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38290#p38290"><![CDATA[
Caveman, if you read my post, you'll see that the variable does *exist*, but it is *blank*. That's not the same as saying it doesn't exist or it is not set. There's no error using $botnick before you connect to a server -- it's just meaningless.<br><br>We know what we are talking about!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Jul 06, 2004 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-06T16:13:07-04:00</updated>

		<published>2004-07-06T16:13:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38288#p38288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38288#p38288"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38288#p38288"><![CDATA[
<blockquote class="uncited"><div>What you said could be true, I have no way of testing against it, as the bind is a pubm and therefor would only work in a channel.</div></blockquote> Sure you can test it.. Your current script won't work... Kill your bot.. and start it up from the shell prompt again, and then test it in the channel...<br><blockquote class="uncited"><div>But anyhow I do not believe you as your reasoning would mean that my script would not work in any way. But it is working, due to the 'global $botnick' inside the procedure.</div></blockquote>It's working because when you rehash, your bot is already on irc, and botnick is already set.  You can remove the global line and it will still work when you do this.<br><br>Also, for the record, please read doc/tcl-commands.doc, and your eggdrop config file, for the definitions of "nick" and "botnick". (The doc comes with your eggdrop)<br><blockquote class="uncited"><div>Now you tell me, that the binds get read before the botnick is set.<br>Then how does this explain that my bind, using a not-set-variable, <strong class="text-strong">is working</strong> without rehashing?<br>*very confused*</div></blockquote>Simple, <strong class="text-strong">It's not</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Jul 06, 2004 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Cavemanm85de]]></name></author>
		<updated>2004-07-06T15:54:37-04:00</updated>

		<published>2004-07-06T15:54:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38287#p38287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38287#p38287"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38287#p38287"><![CDATA[
Up front... in Germany we have a saying, that those who critizise the spelling of other have nothing else to contribute .)<br><br>What you said could be true, I have no way of testing against it, as the bind is a pubm and therefor would only work in a channel.<br><br>But anyhow I do not believe you as your reasoning would mean that my script would not work in any way. But it is working, due to the 'global $botnick' inside the procedure.<br><br>Now you tell me, that the binds get read before the botnick is set.<br>Then how does this explain that my bind, using a not-set-variable, <strong class="text-strong">is working</strong> without rehashing?<br><br>*very confused*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5161">Cavemanm85de</a> — Tue Jul 06, 2004 3:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-07-06T13:58:45-04:00</updated>

		<published>2004-07-06T13:58:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38276#p38276</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38276#p38276"/>
		<title type="html"><![CDATA[Problem binding to variable trigger with pubm]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38276#p38276"><![CDATA[
Dude, you have seen both me and stdragon tell you about $botnick...<br><br>From doc/tcl-commands.doc:<br><blockquote class="uncited"><div>botnick<br><br>Value: the <strong class="text-strong">current</strong> nickname the bot is using (for example: "Valis", "Valis0", etc.)<br><br>Module: server</div></blockquote>Now, if the bot has NOT connected to IRC, (ie. when you first start your eggdrop from the shell), your bot will not have a current nickname, because it has not yet connected to irc... this is fairly simple to understand, and is not a hard concept to grasp.<br><br>And because it doesn't get set on startup, whereas your bind DOES, the binding will be INCORRECT, thus will NOT work when you try it, regardless of your usage of "global".... The only reason it works is because you are .rehash'ing your bot after it has already connected to irc, thus $botnick has been initialized, thus the binding will use that value correctly.<br><br>So again, to reiterate, the problem occurs when you are starting your bot out for the first time.... See my previous post for the solution.<br><br>Oy vay...<br><br>(btw. the word you were looking for was "moot" not "mood", even though the solution we've given is NOT "moot").<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Jul 06, 2004 1:58 pm</p><hr />
]]></content>
	</entry>
	</feed>
