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

	<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-01-10T22:48:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-10T22:48:07-04:00</updated>

		<published>2005-01-10T22:48:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45258#p45258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45258#p45258"/>
		<title type="html"><![CDATA[Modifying authname + autovoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45258#p45258"><![CDATA[
Yes using the bots userfile is easier, not messy and the best situation. Plus you would be able to add lots of different flags, locally for channels as well as globally.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jan 10, 2005 10:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dmt]]></name></author>
		<updated>2005-01-10T20:47:36-04:00</updated>

		<published>2005-01-10T20:47:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45255#p45255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45255#p45255"/>
		<title type="html"><![CDATA[Modifying authname + autovoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45255#p45255"><![CDATA[
<blockquote class="uncited"><div>A user's mask is added to a file, and on join to a channel the host is matched against by the file through whois, and if it matches the user is voiced? Is that it?</div></blockquote>Yes, that's what I wanted to accomplish.<br><br>The problem is a lot of people dont set mode +x. So their authname can only be found in a whois.<br><br>Ideally, identifying them by authname would end up being the best way in the end, because it would never change like their hostmask might. It also identifies them by name.<br><br>But you're probably right that I should just use the bots userfile. It will be easier and I won't have to deal with these problems. Thanks for the help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5868">dmt</a> — Mon Jan 10, 2005 8:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-01-10T06:07:45-04:00</updated>

		<published>2005-01-10T06:07:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45224#p45224</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45224#p45224"/>
		<title type="html"><![CDATA[Modifying authname + autovoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45224#p45224"><![CDATA[
It would be easier to add users to the bots userlist. when they @add themselves to the bot. whoising everyone on join in a script is pointless if i have understood you correctly as the bot already looks at the users host to decide what it has to do with that user depending on what flags if any they have in the userfile or to match any bans..<br><br>So to clarify make the bot add the users to its own userfile with the flags +vg Also make it channel specific else it will be added to global flags and the user will get voice in every channel unless that is what you want.<br><br>hope this helps.  <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=3723">^DooM^</a> — Mon Jan 10, 2005 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-09T22:57:13-04:00</updated>

		<published>2005-01-09T22:57:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45210#p45210</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45210#p45210"/>
		<title type="html"><![CDATA[Modifying authname + autovoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45210#p45210"><![CDATA[
What is an authname? I am not sure. And what has it got todo with /whois?<br><br>Is it something like, autovoice on join?<br>Authname is apart of the user's hostmask?<br><br>A user's mask is added to a file, and on join to a channel the host is matched against by the file through whois, and if it matches the user is voiced? Is that it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jan 09, 2005 10:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dmt]]></name></author>
		<updated>2005-01-08T17:43:46-04:00</updated>

		<published>2005-01-08T17:43:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45206#p45206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45206#p45206"/>
		<title type="html"><![CDATA[Modifying authname + autovoice script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45206#p45206"><![CDATA[
I've been trying to modify a few scripts together so that my bot will let users add themselves for autovoice. It will add their authname to a list, and when they join the channel it will then whois them, and if their authname is found in the file, they will be voiced.<br><br>Heres the part of my script that matters for this question<br><div class="codebox"><p>Code: </p><pre><code>bind msg - @add adduserproc adduser { nick uhost hand args } {   global usernick   global authname   set usernick $nick   whois:nick $nickset up $authnameset wfile [open $userlist a+]puts $wfile $upclose $wfile}proc whois:nick { target } {global whoisglobal usernick   set target $usernickputquick "WHOIS $target $target"set ::whoistarget $targetbind RAW - 330 whois:auth}proc whois:auth { from keyword arguments } {global authnameset target $::whoistargetset authname [lindex [split $arguments] 2]unbind RAW - 330 whois:auth}</code></pre></div>The problem is whenever I test adding someone, it says "Tcl error [adduser]: can't read "authname": no such variable" eventhough I have it as global. Also I'm not sure if I'm calling the whois:nick proc the right way, although I can't test it so I can't get the authname var working. Any help would be appreciated, thanks.<br><br>Note: I removed some unimportant stuff from the code like msgs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5868">dmt</a> — Sat Jan 08, 2005 5:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
