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

	<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>2003-10-14T13:59:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-10-14T13:59:06-04:00</updated>

		<published>2003-10-14T13:59:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28481#p28481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28481#p28481"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28481#p28481"><![CDATA[
This code on a single bot works, but when called with the putallbots<br>it doesn't<div class="codebox"><p>Code: </p><pre><code># auth inviteproc inviteall { n h c } {  set clist ""  foreach c [channels] {    if {[matchattr $h -|I $c] &amp;&amp; [botisop $c] &amp;&amp; [string match *+private* [channel info $c]]} {      putserv "INVITE $n $c"      lappend clist $c    }  }  return 0}</code></pre></div> Called with "inviteall $n $h"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Tue Oct 14, 2003 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-10-14T13:55:42-04:00</updated>

		<published>2003-10-14T13:55:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28480#p28480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28480#p28480"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28480#p28480"><![CDATA[
Removed the '$args' and now I get:<br>Tcl error [ninvite]: called "ninvite" with too many arguments<br>I've tried changing a few things but nothing seems to work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Tue Oct 14, 2003 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-10-14T04:56:49-04:00</updated>

		<published>2003-10-14T04:56:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28459#p28459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28459#p28459"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28459#p28459"><![CDATA[
Larger advice, your BOT bind proc is accepting $args which is a special variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 14, 2003 4:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-10-14T04:14:23-04:00</updated>

		<published>2003-10-14T04:14:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28456#p28456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28456#p28456"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28456#p28456"><![CDATA[
<blockquote class="uncited"><div>inviteall $n $h<br>proc inviteall { n h args } {</div></blockquote>Don't think you forget to send args?<br>if you don't need it, don't put it.<br>End if you're not sure you'll use it, try:<div class="codebox"><p>Code: </p><pre><code>proc inviteall { n h {args ""}} {</code></pre></div>and a small advice: use intelligent-named variables, prefer $nick than $n...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Oct 14, 2003 4:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-10-14T13:45:00-04:00</updated>

		<published>2003-10-13T16:38:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28431#p28431</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28431#p28431"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28431#p28431"><![CDATA[
Ok, still can't get it working<br>heres the code im trying to work with<br>basically it sends 'ninvite $n' over the botnet and then<br>gets caught by all the other bots then calls the 'inviteall' proc<br>which works on its own btw, just not like this.<br><div class="codebox"><p>Code: </p><pre><code>proc myproc { n u h a } {code...set netinvite "ainvite $n $h"putallbots $netinvite}# botnet invitebind bot - ainvite ninviteproc ninvite {from command args} {set n [lindex $args 0]set h [lindex $args 1]inviteall $n $h}# auth inviteproc inviteall { n h args } {  set clist ""  foreach c [channels] {    if {[matchattr $h -|I $c] &amp;&amp; [botisop $c] &amp;&amp; [string match *+private* [channel info $c]]} {      putserv "INVITE $n $c"      lappend clist $c    }  }  return 0}</code></pre></div>Like I said, the inviteall proc works fine, just doesnt work when sent over<br>the botnet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Mon Oct 13, 2003 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-10-13T14:06:00-04:00</updated>

		<published>2003-10-13T14:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28421#p28421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28421#p28421"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28421#p28421"><![CDATA[
This putallbots proc would be on each bot,<br>so is there any way to broadcast it to all bots<br>rather than a single bot, I thought putbot was for a single<br>and putallbots would send the command to all bots?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Mon Oct 13, 2003 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-10-13T13:25:27-04:00</updated>

		<published>2003-10-13T13:25:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28415#p28415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28415#p28415"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28415#p28415"><![CDATA[
<blockquote class="uncited"><div>putallbots &lt;message&gt;<br>Description: sends a message across the botnet to all bots. If no script intercepts the message on the other end, the message is ignored.<br><br>bind bot &lt;flags&gt; &lt;command&gt; &lt;proc&gt;<br>proc-name &lt;from-bot&gt; &lt;command&gt; &lt;text&gt;<br>Description: triggered by a message coming from another bot in the botnet. The first word is the command and the rest becomes the text argument; flags are ignored.</div></blockquote>So, if you want to send $nick and $hand:<div class="codebox"><p>Code: </p><pre><code># masta botproc your:proc {nick hand} {set msg "saw $nick $hand"putallbots $msg}################# slaves botsbind bot - saw proc:sawproc:saw {from command args} {   global masta_nick mychan   if {$from == $masta_nick} {      set unick [lindex $args 0]      set uhand [lindex $args 1]      putquick "PRIVMSG $mychan :$masta_nick saw $unick, known as $uhand"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Oct 13, 2003 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2003-10-13T12:52:12-04:00</updated>

		<published>2003-10-13T12:52:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=28413#p28413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=28413#p28413"/>
		<title type="html"><![CDATA[putallbots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=28413#p28413"><![CDATA[
Hey,<br>Can someone give me a simple example<br>of 'puallbots' and 'bind bot'<br>I've been fiddling with it for a while and can't<br>get it to work. All I need to carry over is $nick<br>and maybe $hand, just never works for me though.<br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Mon Oct 13, 2003 12:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
