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

	<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-08-25T14:41:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-25T14:41:17-04:00</updated>

		<published>2002-08-25T14:41:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10022#p10022</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10022#p10022"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10022#p10022"><![CDATA[
Ive read through that. Cant say it made a great deal of sense heh.<br><br>Ive worked out simple matching such as<br><blockquote class="uncited"><div>regexp {[0,1]} $blah</div></blockquote>matching just those 2 numbers etc, but i cant work out how to get it to match an email address, so it would only accept <a href="mailto:blah@blah.blah">blah@blah.blah</a>, and check for invalid characters at the same time.<br><br>has anyone got an example?<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Sun Aug 25, 2002 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-08-15T06:35:24-04:00</updated>

		<published>2002-08-15T06:35:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9805#p9805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9805#p9805"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9805#p9805"><![CDATA[
<a href="http://www.tcl.tk/man/tcl8.2.3/TclCmd/regexp.htm" class="postlink">http://www.tcl.tk/man/tcl8.2.3/TclCmd/regexp.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Thu Aug 15, 2002 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-14T19:17:43-04:00</updated>

		<published>2002-08-14T19:17:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9795#p9795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9795#p9795"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9795#p9795"><![CDATA[
thanks, could someone point me in the direction of a regexp tutorial or something similar as i havnt come across it in any of the tcl tutiorials ive looked through yet.<br><br>thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Wed Aug 14, 2002 7:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-14T18:27:47-04:00</updated>

		<published>2002-08-14T18:27:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9794#p9794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9794#p9794"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9794#p9794"><![CDATA[
You can use the string command to do a match like that, however, using regexp will give better results.<br><br>With this, you can use one of the readily available reg expressions available. They will check for the use of valid characters, and format, not just the requirmen of the @ and .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Aug 14, 2002 6:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-14T15:01:22-04:00</updated>

		<published>2002-08-14T15:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9784#p9784</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9784#p9784"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9784#p9784"><![CDATA[
Thanks, that worked. Following on from that, is there any way to make the bot check the formatting of the email address.<br><br>such as:<br><blockquote class="uncited"><div>if { $regmail != "*@*.*" }</div></blockquote>tell the user its the wrong format and to enter it properly<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Wed Aug 14, 2002 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-11T18:05:30-04:00</updated>

		<published>2002-08-11T18:05:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9623#p9623</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9623#p9623"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9623#p9623"><![CDATA[
The EMAIL field is allways based on the XTRA feild.<br><br>You should use<br>setuser $hand XTRA "EMAIL <a href="mailto:email@address.test">email@address.test</a>"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Aug 11, 2002 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-08-09T22:52:26-04:00</updated>

		<published>2002-08-09T22:52:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9582#p9582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9582#p9582"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9582#p9582"><![CDATA[
The email type only appears when you have a certain module loaded, I think (I forget which). You're best off using the XTRA field since it's always available.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Aug 09, 2002 10:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-08-09T22:12:06-04:00</updated>

		<published>2002-08-09T22:12:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9581#p9581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9581#p9581"/>
		<title type="html"><![CDATA[setuser / email]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9581#p9581"><![CDATA[
Hi<br><br>Im trying to set some user information at the same time as adding them to the bot.<br><br>im using the code:<br><br>setuser $newhand EMAIL $email<br><br>but when the user tries to register with the bot i see the error:<br><br>&lt;H4&gt; [02:31] Tcl error [handle_reg]: No such info type: EMAIL<br><br>i took the command out of tcl-commands.dos which says<br><br>EMAIL   - returns the user's e-mail address<br><br>  setuser &lt;handle&gt; &lt;entry-type&gt; [extra info]<br>    Description: this is the counterpart of getuser. It lets you set the<br>      various values. Other then the ones listed below, the entry-types are<br>      the same as getuser's.<br><br>so i cant really see what im doing wrong. The same syntax worked to add the users password.<br><br>Any ideas?<br><br>thanks<br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Fri Aug 09, 2002 10:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
