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

	<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-05-08T06:53:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-08T06:53:49-04:00</updated>

		<published>2003-05-08T06:53:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19951#p19951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19951#p19951"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19951#p19951"><![CDATA[
I agree with you that the code you've pasted needs some changes in order it to work with the +user thing. My appologies.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 08, 2003 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2003-05-08T06:50:02-04:00</updated>

		<published>2003-05-08T06:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19948#p19948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19948#p19948"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19948#p19948"><![CDATA[
.command argument1 argument2<br><br>afaik<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Thu May 08, 2003 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-08T06:49:50-04:00</updated>

		<published>2003-05-08T06:49:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19947#p19947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19947#p19947"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19947#p19947"><![CDATA[
Re-read my code, and then re-read ".help +user" &amp; ".help adduser".<br><br>I don't mean to bitch about it, but they are 100% different in there actions.<br><br>EG<blockquote class="uncited"><div>.+user ppslim ppslim!*<a href="mailto:ident@host.com">ident@host.com</a><br>.adduser ppslim slimbot</div></blockquote>Adduser uses a handle. My script has to parse this out, otherwise, it doesn't know if the user has been added or not.<br><br>EG, if only the nickname is give, then the nickanme is the handle too. If the handle is given too, then the handle may be different.<br><br>With +user, the second argument is a hostmask. Hostmasks are not handles, and as such, any occurance of the hostmask in the command, would cause my script not to message the user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 08, 2003 6:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-08T06:42:26-04:00</updated>

		<published>2003-05-08T06:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19944#p19944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19944#p19944"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19944#p19944"><![CDATA[
Actualy the second argument is an nick as you can see: +user &lt;nickname&gt; [hostmask] and for adduser it's: adduser [!]&lt;nickname&gt; [handle] so.. they are aproximative the same thing with one minor difference, the "!" thing.<br><br>And about the +user space * it's ok if is "+user*" or "+user *". The only difference betwen them is that the first one matches all the commands that start with +user (I doubt there is one that starts with +user and is not it), the other one mathches only the +user one. So basicaly your's is correct, and mine is not wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 08, 2003 6:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-08T06:36:36-04:00</updated>

		<published>2003-05-08T06:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19942#p19942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19942#p19942"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19942#p19942"><![CDATA[
2 things.<br><br>1: It should be ".+user *" (note the space). While not a secuity issue, it does stop un-needed code calls.<br><br>2: You can't use the script given for the +user command.<br><br>The +user command takes a hostmask as the second argument, and would thus make the above script go a little nuts.<br><br>I use somthing simalar to the script given, however, I leave +user out, so I still have control when a message should be sent.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu May 08, 2003 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-08T06:17:48-04:00</updated>

		<published>2003-05-08T06:17:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19939#p19939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19939#p19939"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19939#p19939"><![CDATA[
Also an "bind FILT - ".+user*" myfilt:adduser" will be nice. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>PS: And I was not talking about "having to re-code vital portions of the bot." Anyway, it's nice.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 08, 2003 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-07T09:01:43-04:00</updated>

		<published>2003-05-07T09:01:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19917#p19917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19917#p19917"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19917#p19917"><![CDATA[
Puthelp should work fine, and is advised.<br><br>Seeing as the puthelp queue is the least priority, it may be that the other queues have data to dump.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 07, 2003 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MrT]]></name></author>
		<updated>2003-05-07T08:49:11-04:00</updated>

		<published>2003-05-07T08:49:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19916#p19916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19916#p19916"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19916#p19916"><![CDATA[
ahhh i see <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>one final adjustment i had to make was to change puthelp to putserv... i dont know if its just a network thing or what but it works great now.<br><br>Thanks<br><br>MrT<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2161">MrT</a> — Wed May 07, 2003 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-07T06:32:29-04:00</updated>

		<published>2003-05-07T06:32:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19909#p19909</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19909#p19909"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19909#p19909"><![CDATA[
Luckily, no.<br><br>Locate the word validhand and change my stupid mistake to validuser.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 07, 2003 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MrT]]></name></author>
		<updated>2003-05-07T05:32:37-04:00</updated>

		<published>2003-05-07T05:32:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19906#p19906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19906#p19906"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19906#p19906"><![CDATA[
that looks like exactly what im looking for <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>one small problem (im basically a bit of a noob at the coding side of things although ive been playing with eggrops for a while...), i just had a go of the code exactly as you wrote it and i get an error:<br><blockquote class="uncited"><div>Tcl error [myfilt:adduser]: invalid command name "validhand"</div></blockquote>is this another case of an old tcl version on my shell? (i've had problems with that before - i spoke to my provider and it should be upgraded soon i hope)<br><br>thanks for your time <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2161">MrT</a> — Wed May 07, 2003 5:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-07T05:03:15-04:00</updated>

		<published>2003-05-07T05:03:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19903#p19903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19903#p19903"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19903#p19903"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind FILT - ".adduser *" myfilt:adduserproc myfilt:adduser {idx text} {  if {[string index [set nick [lindex [split $text] 1]] 0] == "!"} {    set nick [string range $nick 1 end]  }  if {[set newhand [lindex [split $text] 2]] == ""} {    set newhand $nick  }  if {[validhand $newhand]} { return $text }   *dcc:adduser [idx2hand $idx] $idx [join [lrange [split $text] 1 end]]  if {[validuser $newhand]} {    puthelp "NOTICE $nick :You have now been added to this bot"    puthelp "NOTICE $nick :You need to set a password, using the following command."    puthelp "NOTICE $nick :/msg $::botnick pass &lt;password&gt;"    puthelp "NOTICE $nick :Replacing &lt;password&gt; with a secure, unique password"    puthelp "NOTICE $nick :After this, you may see the commands available by typing"    puthelp "NOTICE $nick :/msg $::botnick help"  }  return ""}</code></pre></div>That should do what you need, without having to re-code vital portions of the bot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 07, 2003 5:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-07T01:52:45-04:00</updated>

		<published>2003-05-07T01:52:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19900#p19900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19900#p19900"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19900#p19900"><![CDATA[
Use a bind msg if you want something like an hello. You should browse the TCL Archive and get one and look how it's done, also you can do a forum search. Anyway, I'm shure you'll find something usefull.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed May 07, 2003 1:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MrT]]></name></author>
		<updated>2003-05-06T23:15:00-04:00</updated>

		<published>2003-05-06T23:15:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=19898#p19898</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=19898#p19898"/>
		<title type="html"><![CDATA[automatic message on adduser]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=19898#p19898"><![CDATA[
hi,<br><br>I was just wondering if there is a way of having the bot automatically send a message to a user that has just been added telling them how to set their password?<br><br>Sort of like when you message the bot "hello" to add yourself and the bot then tells you you were added and tells you to set a pass, except it would be me adding them and then being lazy and having the bot explain for me how to set a pass.<br><br>On the same note, a message to the user telling them they were added would be good...<br><br>Thanks,<br><br>MrT<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2161">MrT</a> — Tue May 06, 2003 11:15 pm</p><hr />
]]></content>
	</entry>
	</feed>
