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

	<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-09-28T14:45:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-28T14:45:10-04:00</updated>

		<published>2002-09-28T14:45:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11471#p11471</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11471#p11471"/>
		<title type="html"><![CDATA[string map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11471#p11471"><![CDATA[
1. "string map" is fine, but you're not saving the return value (the modified string) so it's having no effect<br><br>2. You could matching $user* against nick<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Sep 28, 2002 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-09-28T11:58:07-04:00</updated>

		<published>2002-09-28T11:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11467#p11467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11467#p11467"/>
		<title type="html"><![CDATA[string map]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11467#p11467"><![CDATA[
It actually works, I want it to ignore users whose nicknames are the same as ident. It works as long as user has enbled ident, when ident is disabled  "~" is placed in a front of it and it doesn't work. I thought string map {~ ""} $user would fix it but it doesn't. Example when, nickname!nickname@host joins bots does nothing, and it should do nothing when nickname!~nickname@host as well. I don't know if string map {~ ""} is correct.  I also wonder how could I make bot also do nothing if some part of nick is in ident, exmple <br>nickname!nicknam@host <br>...<br># it gets IRC ident<br>set user [lindex [split $uhost "@"] 0]<br># if ~ is in ident it should be removed<br>string map {~ ""} $user<br># checking is string is in nick and in ident<br>if {([string tolower $nick] == [string tolower $user]) || (![regexp "^\[a-zA-Z~\]{[string length $user]}" $user])}  { return 0 }<br>foreach rnn $randomnicks {<br>if {([string match $rnn $nick]) || ([string match $rnn $user])} {<br>...<br><br>Thanks for any help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sat Sep 28, 2002 11:58 am</p><hr />
]]></content>
	</entry>
	</feed>
