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

	<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-06-27T20:39:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-27T20:39:41-04:00</updated>

		<published>2005-06-27T20:39:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51447#p51447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51447#p51447"/>
		<title type="html"><![CDATA[if user changes nick, how to pull info for nick in userfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51447#p51447"><![CDATA[
your proc is incorrect, use [matchattr] instead of [chattr] for matching user flags/attributes<br><br>and for converting between nick and user (handle) use the procs suggested by YooHoo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jun 27, 2005 8:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2005-06-27T18:37:19-04:00</updated>

		<published>2005-06-27T18:37:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51441#p51441</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51441#p51441"/>
		<title type="html"><![CDATA[if user changes nick, how to pull info for nick in userfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51441#p51441"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>nick2hand &lt;nickname&gt; [channel]    Returns: the handle of a nickname on a channel. If a channel is not      specified, the bot will check all of its channels. If the nick is      not found, "" is returned. If the nick is found but does not have      a handle, "*" is returned.    Module: irc  hand2nick &lt;handle&gt; [channel]    Returns: nickname of the first person on the specified channel (if one      is specified) whose nick!user@host matches the given handle; "" is      returned if no match is found. If no channel is specified, all channels      are checked.    Module: irc</code></pre></div>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Jun 27, 2005 6:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xcoldfyrex]]></name></author>
		<updated>2005-06-27T15:37:13-04:00</updated>

		<published>2005-06-27T15:37:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51437#p51437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51437#p51437"/>
		<title type="html"><![CDATA[if user changes nick, how to pull info for nick in userfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51437#p51437"><![CDATA[
if i am reading that right, that event is triggered when the user changes thier nick, the code i posted is when somone is a channel does "!flag &lt;nick&gt;" . the stats.mod works like that, it keeps correct info reguardless of nickname<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6412">xcoldfyrex</a> — Mon Jun 27, 2005 3:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dizzle]]></name></author>
		<updated>2005-06-27T15:32:31-04:00</updated>

		<published>2005-06-27T15:32:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51436#p51436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51436#p51436"/>
		<title type="html"><![CDATA[if user changes nick, how to pull info for nick in userfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51436#p51436"><![CDATA[
<blockquote class="uncited"><div>NICK (stackable)<br>         bind nick &lt;flags&gt; &lt;mask&gt; &lt;proc&gt;<br>         procname &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;channel&gt; &lt;newnick&gt;<br><br>        Description: triggered when someone changes nicknames. The mask<br>           is matched against '#channel newnick' and can contain wildcards.<br>           Channel is "*" if the user isn't on a channel (usually the bot not<br>           yet in a channel).<br>         Module: irc</div></blockquote>this is from tcl-commands, $newnick will be the user who's had a nickchange.<br>Hope this will help<br><br>Good luck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6156">Dizzle</a> — Mon Jun 27, 2005 3:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xcoldfyrex]]></name></author>
		<updated>2005-06-27T15:28:40-04:00</updated>

		<published>2005-06-27T15:28:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51435#p51435</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51435#p51435"/>
		<title type="html"><![CDATA[if user changes nick, how to pull info for nick in userfile]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51435#p51435"><![CDATA[
This tcl works, but the nick must be in the userlist, how can this work for people who changed thier nicknames(it wont recognize them right now)<br><br><br>proc flags {nick host hand chan text} {<br>set fl [chattr $nick | $chan]<br>set fl2 [chattr $text | $chan]<br>set nnick [getchanhost $text]<br>set fuser [finduser $nnick]<br>if { $fl != "*" || $fl2 != "*" } {<br>        if { $text == "" } {<br>                putquick "PRIVMSG $chan :Flags for $text!$nnick: Global flags-&lt;\002 $fl\002 &gt;-$chan flags"<br>                } else {<br>                putquick "PRIVMSG $chan :Flags for $text!$nnick: Global flags-&lt;\002 $fl2\002 &gt;-$chan flags"<br>                }<br>        } else {<br>        putquick "PRIVMSG $chan :that mofo ($text!$nnick) ain in da database..."<br>        }<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6412">xcoldfyrex</a> — Mon Jun 27, 2005 3:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
