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

	<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-06-01T19:33:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-01T19:33:00-04:00</updated>

		<published>2002-06-01T19:33:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7555#p7555</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7555#p7555"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7555#p7555"><![CDATA[
it works fine, thx to all.<p>Statistics: Posted by Guest — Sat Jun 01, 2002 7:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-05-29T16:01:00-04:00</updated>

		<published>2002-05-29T16:01:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7392#p7392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7392#p7392"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7392#p7392"><![CDATA[
I read this then realized, "Hey! Good idea!" so here it is:<br><br>##set this to how many hosts to check for<br>set maxhosts 5<br>##this is the user the note is sent from<br>set notenick "nick"<br><br>bind dcc n hostcheck hostcheck_start<br>proc hostcheck_start {n u h} {<br>foreach user [userlist] {<br>  if {[llength [getuser $user hosts]] &gt; $maxhosts} {<br>    sendnote $notenick $user "Please remove some of your hosts."<br>    putlog "$user has too many hosts, sending note..."<br>  }<br> }<br>}<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: tainted on 2002-05-29 14:03 ]&lt;/font&gt;<br><br>&lt;font size=-1&gt;[ This Message was edited by: tainted on 2002-05-29 14:05 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Wed May 29, 2002 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-05-28T09:45:00-04:00</updated>

		<published>2002-05-28T09:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7326#p7326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7326#p7326"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7326#p7326"><![CDATA[
As stated in my post. Check tcl-commands.doc. It has all the commands listed.<br><br>If you can't be bothered to looks, we sure as hell won't help you do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue May 28, 2002 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-27T11:20:00-04:00</updated>

		<published>2002-05-27T11:20:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7295#p7295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7295#p7295"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7295#p7295"><![CDATA[
that´s my problem, what is the equal command in tcl for the dcc-command .note ?<br>btw, is there an Editor available that checks syntax and stuff ??<br><br>&lt;font size=-1&gt;[ This Message was edited by: Maverick on 2002-05-27 09:40 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Mon May 27, 2002 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-05-27T08:46:00-04:00</updated>

		<published>2002-05-27T08:46:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7291#p7291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7291#p7291"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7291#p7291"><![CDATA[
Somthing like<br><div class="codebox"><p>Code: </p><pre><code>foreach user [userlist] {  if {[llength [getuser $user hosts]] &gt; $maxhosts} {    sendnote $user "ntoo many hosts"  }}</code></pre></div>Replace sendnote with your command for sending notes, or read the tcl-command.doc help file for a lists of commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon May 27, 2002 8:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-27T08:35:00-04:00</updated>

		<published>2002-05-27T08:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7288#p7288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7288#p7288"/>
		<title type="html"><![CDATA[leave a message to users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7288#p7288"><![CDATA[
I made a script that checks, if a user has more than x hostmasks. If it is, i want the bot to leave that users a message like ".note &lt;handle&gt; &lt;text&gt;". I dont know how, can someone help me plz?<br><br>.<br>.<br>.<br>      foreach host [getuser $user hosts] {<br>         incr hostcount 1<br>      }<br>      if {$hostcount &gt;= $hosts} {<br>         append list "$user, "<br>         incr usercount 1<br>   }<br>.<br>.<br>.<p>Statistics: Posted by Guest — Mon May 27, 2002 8:35 am</p><hr />
]]></content>
	</entry>
	</feed>
