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

	<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-04-10T06:51:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-10T06:51:28-04:00</updated>

		<published>2004-04-10T06:51:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35394#p35394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35394#p35394"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35394#p35394"><![CDATA[
type .binds in party line then unbind every bind u don't like using .tcl unbind bindname<br><br>also if u remove the binds and rehash the bots then the binds should be overwritten so .. and it should work just fine ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sat Apr 10, 2004 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-04-10T06:41:23-04:00</updated>

		<published>2004-04-10T06:41:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35393#p35393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35393#p35393"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35393#p35393"><![CDATA[
What was happening is that because i kept changing the binds, the old binds were not being removed. I try to avoid restarting the bot as often as possible as it [censored] a few things up. But the double (and ended up as tripe) binding was due to the old binds not being removed. <br><br>fixed by restarting<br><br>Is there an easier way to refresh the binds list without rebooting the bot?<br><br>the script works fine btw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Sat Apr 10, 2004 6:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-10T05:38:33-04:00</updated>

		<published>2004-04-10T05:38:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35391#p35391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35391#p35391"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35391#p35391"><![CDATA[
what are u talking about ?<br><br>no genius talk just plain english <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=3151">Ofloo</a> — Sat Apr 10, 2004 5:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-04-09T04:04:49-04:00</updated>

		<published>2004-04-09T04:04:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35352#p35352</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35352#p35352"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35352#p35352"><![CDATA[
This is the code in the end. I know itll work, but i have yet to see if itll stop the double binds. As my usual irc network is fux0red<br><div class="codebox"><p>Code: </p><pre><code>#Triggers when the bot joins the channelbind join - * join:loginproc join:login {nick uhost hand chan} {        global irpg        if {[string match -nocase $irpg(runchan) $chan]} {                if {[isbotnick $nick]} {                        putlog "\002Joined #irpg\002 - $chan $nick"                        puthelp "Privmsg $irpg(bot) :login $irpg(name) $irpg(pa$                        } {                        if {[string match -nocase $irpg(bot) $nick]} {                                putlog "$irpg(bot) joined channel, sending mess$                                puthelp "Privmsg $irpg(bot) :login $irpg(name) $                                } { return 0 }                        }                }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Fri Apr 09, 2004 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-09T00:02:01-04:00</updated>

		<published>2004-04-09T00:02:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35344#p35344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35344#p35344"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35344#p35344"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - "$irpg(runchan)*" join:login </code></pre></div>set that to <br><div class="codebox"><p>Code: </p><pre><code>bind join - * join:login</code></pre></div>* = host mask not the channel it is joining<br><br>add this<br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase $irpg(runchan) $chan]} {# put here the content of ur current proc} </code></pre></div>or set <br><div class="codebox"><p>Code: </p><pre><code>bind join - "$irpg(runchan)*" join:login </code></pre></div>to <br><div class="codebox"><p>Code: </p><pre><code>bind join - "ident@host.tld" join:login </code></pre></div>of your bot eh<br><br>maybe also change <br><div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase $botnick $nick]} {</code></pre></div>to <br><div class="codebox"><p>Code: </p><pre><code>if {[isbotnick $nick]} {</code></pre></div>then you can remove global as well<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Apr 09, 2004 12:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-04-08T18:15:45-04:00</updated>

		<published>2004-04-08T18:15:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35338#p35338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35338#p35338"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35338#p35338"><![CDATA[
Its actually for an rpg channel i frequent in <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>What i am mostly concerned about is why the bind doesnt trigger. IE, when the nickname in question rejoined the channel ater a netsplit, nothing happened. When i would expect it to happen.  A string match is always an alternative. Although from what i could tell, the nickanem i specified in the $irpg(bot) was IDENTICAL to the nickname that joined. <br><br>Which is why i am a little confuzzled<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Apr 08, 2004 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-08T16:07:14-04:00</updated>

		<published>2004-04-08T16:07:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35323#p35323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35323#p35323"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35323#p35323"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - "$irpg(runchan)*" join:login proc join:login {nick uhost hand chan} {   global irpg botnick  if {[string match -nocase $botnick $nick]} {     putlog "\002Joined #irpg\002 - $chan $nick"     putserv "PRIVMSG $irpg(bot) :login $irpg(name) $irpg(pass)"   } }</code></pre></div>didn't test it tho <br><br>also if its to identify to nickserv plz check the tclarchive there are allready scripts in there that do this .. then use bind notice or if its on connect then check out bind evnt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Apr 08, 2004 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2004-04-08T07:34:07-04:00</updated>

		<published>2004-04-08T07:34:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35300#p35300</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35300#p35300"/>
		<title type="html"><![CDATA[Binding Twice]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35300#p35300"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - "$irpg(runchan)*" join:loginproc join:login {nick uhost hand chan} {        global irpg        if {$nick == $::botnick} {                putlog "\002Joined #irpg\002 - $chan $nick"                puthelp "Privmsg $irpg(bot) :login $irpg(name) $irpg(pass)"                }}</code></pre></div>I have a slight problem. I want this little bit of script to trigger when the bot joins a channel, #irpg. the bot does join it, but then the if statement runs twice, giving me two messages and sending the pm twice. <br><br>&lt;Natsuki-Chan&gt; [12:24] Joined #pirg - #irpg Natsuki-Chan<br>&lt;Natsuki-Chan&gt; [12:24] Joined #irpg - #irpg Natsuki-Chan<br><br><br>Secondly, this doesnt bind at all... when the nickname matching $irpg(bot) joins the channel. <br><div class="codebox"><p>Code: </p><pre><code>        if {$nick == $irpg(bot)} {                putlog "$irpg(bot) joined channel, sending message"                puthelp "Privmsg $irpg(bot) :login $irpg(name) $irpg(pass)"                }</code></pre></div> <br><br>Can you help, as i can gaurentee its something most likely blatantly simple, that i am missing<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Apr 08, 2004 7:34 am</p><hr />
]]></content>
	</entry>
	</feed>
