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

	<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-05-17T09:39:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-17T09:39:30-04:00</updated>

		<published>2005-05-17T09:39:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49569#p49569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49569#p49569"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49569#p49569"><![CDATA[
We aim to please.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue May 17, 2005 9:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-05-17T03:36:20-04:00</updated>

		<published>2005-05-17T03:36:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49564#p49564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49564#p49564"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49564#p49564"><![CDATA[
Thanks guys for the scripts.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Tue May 17, 2005 3:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-14T09:23:52-04:00</updated>

		<published>2005-05-14T09:23:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49456#p49456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49456#p49456"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49456#p49456"><![CDATA[
or something like this?<br><div class="codebox"><p>Code: </p><pre><code>if {[string equal "  " [string range $arg [expr [lindex $arg 3]-2] [expr [lindex $arg 3]-1]]]} {if {[string equal "  " [string range $arg [expr [lindex $arg 2]+1] [expr [lindex $arg 2]+2]]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat May 14, 2005 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-13T04:01:23-04:00</updated>

		<published>2005-05-13T04:01:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49429#p49429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49429#p49429"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49429#p49429"><![CDATA[
<blockquote class="uncited"><div>ytfwtj ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a>_*_yohxrtru &lt;-- anormal user only 1 space "_" </div></blockquote>Actually there's no space, that's the mIRC script formatting I believe.<br><div class="codebox"><p>Code: </p><pre><code>set realname  [string range [lrange $arg  4 end] 1 end]</code></pre></div>..and if I am correct, the above code will give you what you wish.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri May 13, 2005 4:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-05-13T02:17:45-04:00</updated>

		<published>2005-05-13T02:17:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49426#p49426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49426#p49426"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49426#p49426"><![CDATA[
Here's the script i wrote it in my mirc scripts!<div class="codebox"><p>Code: </p><pre><code>on 1:join:#chan: { whois $nick }raw 311:*:if ($len($gettok($rawmsg,8,32)) == 1) { .kick #chan $2 }</code></pre></div>ytfwtj ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a>_*__yohxrtru &lt;-- that i will kick out!!<br><br>i changed the "space" with "_"  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> <br><br>ytfwtj ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a>_*_yohxrtru &lt;-- anormal user only 1 space "_"<br><br>Thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Fri May 13, 2005 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-12T23:07:20-04:00</updated>

		<published>2005-05-12T23:07:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49422#p49422</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49422#p49422"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49422#p49422"><![CDATA[
Something like this should get you started<div class="codebox"><p>Code: </p><pre><code>bind join - * lookup:realname proc lookup:realname {nick uhost hand chan} {  puthelp "WHOIS $nick" } bind raw - 311 parse:realname proc parse:realname {from key arg} {  set nick [lindex [split $arg] 1] set ident [lindex [split $arg] 2] set host [lindex [split $arg] 3] set realname [string trimleft [lrange $arg 5 end] :] if {[string first " " $realname]==0} {   # the first char in realname is a space }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu May 12, 2005 11:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-05-12T22:11:57-04:00</updated>

		<published>2005-05-12T22:11:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49418#p49418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49418#p49418"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49418#p49418"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>~zfmq</code></pre></div>Unless i am <em class="text-italics">really</em> missing something here THAT is the username and there is NO space!<br><div class="codebox"><p>Code: </p><pre><code>yohxrtru</code></pre></div>... and this is the "RealName".<br><br>You can use RAW 311 (RPL_WHOISUSER) to get a user's real name, username and server host.<br><br>Now, which is it you wish to ban?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu May 12, 2005 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-05-12T21:39:22-04:00</updated>

		<published>2005-05-12T21:39:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49416#p49416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49416#p49416"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49416#p49416"><![CDATA[
There's aspace!!<br>ytfwtj ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a> *  yohxrtru<br>aspace before "yohxrtru", so there is two space between "*" and "yohxrtru"<br>normaly only 1 space.<br>i need to ban the nick <br>is on the spammer bots<br>(the posting forum disable the space!) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Thu May 12, 2005 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-05-12T13:03:04-04:00</updated>

		<published>2005-05-12T13:03:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49404#p49404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49404#p49404"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49404#p49404"><![CDATA[
Which is the space character here?<br><div class="codebox"><p>Code: </p><pre><code>ytfwtj ~zfmq@hots.domain * yohxrtru </code></pre></div>If you are talking about "~" you can detect it by:<div class="codebox"><p>Code: </p><pre><code>if {[string equal "~" [string index [lindex [split $uhost @] 0] 0]]} {</code></pre></div>By the way you don't need to /whois or /who the user for the raw bind, its more easy to bind join and use user@host. <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=4875">awyeah</a> — Thu May 12, 2005 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-12T08:02:39-04:00</updated>

		<published>2005-05-12T08:02:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49398#p49398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49398#p49398"/>
		<title type="html"><![CDATA[Re: Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49398#p49398"><![CDATA[
<blockquote class="uncited"><div>I need ascript, that can detect the specific username of everynick join #<br>only the first character the username, the character is "space"<br>ex: ytfwtj is ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a> *  yohxrtru<br>fist character the username is "space", so the bot can kick out!!<br>Thanks,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"></div></blockquote>the server raw reply is:<br>server.com 311 botnick whoisednick ident the.host.com * :Username<br><br>so to get the Username with all characters you should bind to RAW 311 and use something like:<br>set uname [join [lrange [split $arg :] 1 end] :]<br>this way the only restriction what uname cannot contain this way is a line break, because the server message will be cut there from the bot ^-^.<br><div class="codebox"><p>Code: </p><pre><code>tcl: evaluate (.tcl): join [lrange [split "server.com 311 botnick whoisednick ident the.host.com * : Username: I am cool" :] 1 end] :Tcl:  Username: I am cooltcl: evaluate (.tcl): join [lrange [split "server.com 311 botnick whoisednick ident the.host.com * : Username \{ I am \$cool\]" :] 1 end] :Tcl:  Username { I am $cool]</code></pre></div>if you look close, you can see the double space between : and Username, what idinticates, that space is part of the return value.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu May 12, 2005 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2005-05-12T02:23:30-04:00</updated>

		<published>2005-05-12T02:23:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49390#p49390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49390#p49390"/>
		<title type="html"><![CDATA[Detect the username of everynick join achannel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49390#p49390"><![CDATA[
I need ascript, that can detect the specific username of everynick join #<br>only the first character the username, the character is "space"<br>ex: ytfwtj is ~<a href="mailto:zfmq@hots.domain">zfmq@hots.domain</a> *  yohxrtru<br>fist character the username is "space", so the bot can kick out!!<br>Thanks,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Thu May 12, 2005 2:23 am</p><hr />
]]></content>
	</entry>
	</feed>
