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

	<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-02-08T15:02:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Zariffa]]></name></author>
		<updated>2004-02-08T14:20:21-04:00</updated>

		<published>2004-02-08T14:20:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33342#p33342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33342#p33342"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33342#p33342"><![CDATA[
I have still ne same problem... is it this code so difficult ?!<br><div class="codebox"><p>Code: </p><pre><code>### What is the name of the bot to identify to on join (CSAUTH)? set bot(csauthbot) "me" ### What is the name of the bot you want to do the channel identify (AUTH)? set bot(authbot) "me" ### Set the username / password of the Eggdrop that will use for CSAUTH set bot(csauthuserpass) "Zarifa pass1" ### Set the username / password of the Eggdrop that will use for AUTH set bot(authuserpass) "Zarifa pass2" ### Set this to 1 if you want the script enabled by default, otherwise 0 set bot(enable) 1 # stuff setudef flag auth bind join - * join:csauth #bind dcc - csauth x:csauth bind dcc - auth x:csauth:on_off proc join:csauth {nick uhost handle chan} {     global bot     if {![isbotnick $nick] || $bot(enable) != "1" } {return 0}     putserv "PRIVMSG $bot(csauthbot) :CSAUTH $bot(authbot) $bot(csauthuserpass)" #    foreach chan [channels] {         if {[channel get $chan auth]} {             putserv "PRIVMSG $bot(authbot) :AUTH $chan $bot(authbot) $bot(authuserpass)"         } #    }     return 0 } proc x:csauth:on_off {hand idx arg} {   global bot   switch -- [lindex [split $arg] 0] {     "on" { set bot(enable) 1; putdcc $idx "Authing turned on" }     "off" { set bot(enable) 0; putdcc $idx "Authing turned off" }   } } # suite tant attendue proc join:do_auth {nick uhost hand chan} {    global bot      if {[lsearch -exact [string tolower $bot(csauthbot)] [string tolower $nick]] != -1} {            putserv "PRIVMSG $nick :CSAUTH $bot(csauthuserpass)"       }    }    return 0 }bind join - * join:do_auth</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4349">Zariffa</a> — Sun Feb 08, 2004 2:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-02-07T08:41:44-04:00</updated>

		<published>2004-02-07T08:41:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33305#p33305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33305#p33305"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33305#p33305"><![CDATA[
<blockquote class="uncited"><div>if {[lsearch -exact $bot(csauthbot) [string tolower $nick]]} {</div></blockquote>this should be:<div class="codebox"><p>Code: </p><pre><code>if {[lsearch -exact [string tolower $bot(csauthbot)] [string tolower $nick]] != -1} {</code></pre></div>if nick matches one of the nicks in <strong class="text-strong">bot(csauthbot)</strong> then the bot will message it for auth.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Feb 07, 2004 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zariffa]]></name></author>
		<updated>2004-02-06T19:32:44-04:00</updated>

		<published>2004-02-06T19:32:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33303#p33303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33303#p33303"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33303#p33303"><![CDATA[
Please help me  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4349">Zariffa</a> — Fri Feb 06, 2004 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zariffa]]></name></author>
		<updated>2004-02-05T06:33:47-04:00</updated>

		<published>2004-02-05T06:33:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33234#p33234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33234#p33234"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33234#p33234"><![CDATA[
<blockquote class="uncited"><div>well, I'm affraid that you never give the names of X, Y or Z: <br>Code: <br>set bot(csauthbot) "Me" <br>might be Code: <br>set bot(csauthbot) "X Y Z" </div></blockquote>Yes I know, it was just for example...<br><br>And so what would I really modifiy ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4349">Zariffa</a> — Thu Feb 05, 2004 6:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2004-02-05T04:16:52-04:00</updated>

		<published>2004-02-05T04:16:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33227#p33227</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33227#p33227"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33227#p33227"><![CDATA[
well, I'm affraid that you never give the names of X, Y or Z:<div class="codebox"><p>Code: </p><pre><code>set bot(csauthbot) "Me"</code></pre></div> might be <div class="codebox"><p>Code: </p><pre><code>set bot(csauthbot) "X Y Z"</code></pre></div>and thent you may modify your script:<div class="codebox"><p>Code: </p><pre><code>proc join:do_auth {nick uhost hand chan} {   global bot      if {[lsearch -exact $bot(csauthbot) [string tolower $nick]]} {           putserv "PRIVMSG $nick :CSAUTH $bot(csauthuserpass)"      }   }   return 0}</code></pre></div>This procedure will make your bot send is password if the joining nick is in your bot(csauthbot) variable.<br>The previous version of script you use was for only 1 auth bot.<br>You have to modify the join:csauth procedure<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Feb 05, 2004 4:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zariffa]]></name></author>
		<updated>2004-02-08T15:02:37-04:00</updated>

		<published>2004-02-04T15:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33218#p33218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33218#p33218"/>
		<title type="html"><![CDATA[Completely blocked with sending message on join]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33218#p33218"><![CDATA[
Hello all,<br><br>I'm posting here beaucause I don't know how to get out of this problem, maybe some of you should help me, I think so.<br><br>What this script is supposed to do ? It's simple :<br><br>When Y or Z  JOINs the channel the BOT will send him an AUTH, and when the BOT itself JOINs then channel it will send a send to Y or Z.<br>The problem is that the bot sends only :<blockquote class="uncited"><div>CSAUTH me Zarifa pass1</div></blockquote> when Y joins... the three other possibilities (send to X, send to Y when BOT join, send to W when BOT join) don't work... I hope you'll help me, thanks !!!<br><div class="codebox"><p>Code: </p><pre><code>### What is the name of the bot to identify to on join (CSAUTH)? set bot(csauthbot) "Me" ### What is the name of the bot you want to do the channel identify (AUTH)? set bot(authbot) "Me" ### Set the username / password of the Eggdrop that will use for CSAUTH set bot(csauthuserpass) "Zarifa pass1" ### Set the username / password of the Eggdrop that will use for AUTH set bot(authuserpass) "Zarifa pass2" ### Set this to 1 if you want the script enabled by default, otherwise 0 set bot(enable) 1 # stuff setudef flag auth bind join - * join:csauth #bind dcc - csauth x:csauth bind dcc - auth x:csauth:on_off proc join:csauth {nick uhost handle chan} {     global bot     if {![isbotnick $nick] || $bot(enable) != "1" } {return 0}     putserv "PRIVMSG $bot(csauthbot) :CSAUTH $bot(authbot) $bot(csauthuserpass)" #    foreach chan [channels] {         if {[channel get $chan auth]} {             putserv "PRIVMSG $bot(authbot) :AUTH $chan $bot(authbot) $bot(authuserpass)"         } #    }     return 0 } proc x:csauth:on_off {hand idx arg} {   global bot   switch -- [lindex [split $arg] 0] {     "on" { set bot(enable) 1; putdcc $idx "Authing turned on" }     "off" { set bot(enable) 0; putdcc $idx "Authing turned off" }   } } # suite tant attendue proc join:do_auth {nick uhost hand chan} {     global bot     switch -- [string tolower $nick] {         [string tolower $bot(csauthbot)] {            putserv "PRIVMSG $bot(csauthbot) :CSAUTH $bot(csauthuserpass)"         }         [string tolower $bot(authbot)] {             if {[channel get $chan auth]} {                 putserv "PRIVMSG $bot(authbot) :AUTH $chan $bot(authuserpass)"             }         }     }     return 0 } bind join - * join:do_auth</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4349">Zariffa</a> — Wed Feb 04, 2004 3:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
