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

	<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>2005-10-17T17:20:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-17T17:20:38-04:00</updated>

		<published>2005-10-17T17:20:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56681#p56681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56681#p56681"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56681#p56681"><![CDATA[
thanks again Fz, it's been giving me fits <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=6846">WulfMan72</a> — Mon Oct 17, 2005 5:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-17T17:09:16-04:00</updated>

		<published>2005-10-17T17:09:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56680#p56680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56680#p56680"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56680#p56680"><![CDATA[
You simply use them in an if-statement. for example:<div class="codebox"><p>Code: </p><pre><code>if {[regexp -- {^[A-Z]} $string]} { # do whatever...}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Oct 17, 2005 5:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-17T16:51:32-04:00</updated>

		<published>2005-10-17T16:51:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56679#p56679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56679#p56679"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56679#p56679"><![CDATA[
ok, here's what I have for my script so far, I wanna add the lines from the above posts to have it check if the nick Starts with a capitol letter before it runs the proc.<br><div class="codebox"><p>Code: </p><pre><code>bind join - * servjoinproc servjoin {nick hand u@h chan} { if { [validuser $nick] == 1 } {   user-set $nick XTRA status "AWS"  }  return 0}</code></pre></div><br><div class="codebox"><p>Code: </p><pre><code>regsub -all -- {[^A-z]|\^} $string "" stringregexp -- {^[A-Z]} $string</code></pre></div>can anyone show me exactly how to set up those two lines so the code will only trigger if the nick of the person who triggers it is capped?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Mon Oct 17, 2005 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-12T20:50:14-04:00</updated>

		<published>2005-10-12T20:50:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56584#p56584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56584#p56584"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56584#p56584"><![CDATA[
Thanks guys, I really appreciate it <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=6846">WulfMan72</a> — Wed Oct 12, 2005 8:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-12T19:11:31-04:00</updated>

		<published>2005-10-12T19:11:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56577#p56577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56577#p56577"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56577#p56577"><![CDATA[
This should do it as well:<div class="codebox"><p>Code: </p><pre><code>regexp -- {^[A-Z]} $string</code></pre></div>returns 1 if the first letter of $string is a capital letter, 0 otherwise.<br><br><span style="text-decoration:underline">OR</span><br><div class="codebox"><p>Code: </p><pre><code>string is upper [string index $string 0]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Oct 12, 2005 7:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-10-12T15:23:38-04:00</updated>

		<published>2005-10-12T15:23:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56575#p56575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56575#p56575"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56575#p56575"><![CDATA[
Returns 1 if it starts with a capital letter or a number, 0 if doesnt.<div class="codebox"><p>Code: </p><pre><code>proc firstup {var} { set first [string range $var 0 0] if {![string isupper $first] &amp;&amp; ![string is digit $first]} {  return 0 } {  return 1 }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Wed Oct 12, 2005 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-12T13:11:03-04:00</updated>

		<published>2005-10-12T13:11:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56571#p56571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56571#p56571"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56571#p56571"><![CDATA[
ty Fz, what about just to check if the first letter of a nick is uppercase? is there a way to do that with an eggdrop?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Wed Oct 12, 2005 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-10-12T13:05:52-04:00</updated>

		<published>2005-10-12T13:05:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56570#p56570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56570#p56570"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56570#p56570"><![CDATA[
This should strip all characters other than [A-z]:<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {[^A-z]|\^} $string "" string</code></pre></div>and to check if the string is all in upper case:<div class="codebox"><p>Code: </p><pre><code>string is upper $string</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Oct 12, 2005 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WulfMan72]]></name></author>
		<updated>2005-10-12T11:06:55-04:00</updated>

		<published>2005-10-12T11:06:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=56565#p56565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=56565#p56565"/>
		<title type="html"><![CDATA[matching capped nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=56565#p56565"><![CDATA[
I'm writing a script and I'd like to be able to have it analyze a nick on join and determine if it's Capitalized or not.<br><br>the other aspect is, that since IRC nicks can have special characters as their first character, I'd need to strip it of all special characters before checking for a capped up nick.<br><br>any help would be appreciated<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6846">WulfMan72</a> — Wed Oct 12, 2005 11:06 am</p><hr />
]]></content>
	</entry>
	</feed>
