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

	<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>2010-08-04T00:55:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-03T10:09:26-04:00</updated>

		<published>2010-08-03T10:09:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93732#p93732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93732#p93732"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93732#p93732"><![CDATA[
<blockquote class="uncited"><div>...<br> when I'm in partyline with the bot... what's the command to add/remove users from the bot op's list? <br></div></blockquote>This command changes the flags assigned to a user:<div class="codebox"><p>Code: </p><pre><code>.chattr &lt;handle&gt; [changes] [channel]</code></pre></div>But to really get an explanation:<br><a href="http://www.egghelp.org/commands/core.htm#chattr" class="postlink">http://www.egghelp.org/commands/core.htm#chattr</a><br>( After you read it, be *sure* to notice the line that says:    To get a list of the flags possible, do .help  whois.      <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  )<br><br>You'll probably want to check out these, too:<br><a href="http://www.egghelp.org/commands/irc.htm#adduser" class="postlink">http://www.egghelp.org/commands/irc.htm#adduser</a><br>and/or<br><a href="http://www.egghelp.org/commands/core.htm#+user" class="postlink">http://www.egghelp.org/commands/core.htm#+user</a><br><br>Along with:<br><a href="http://www.egghelp.org/commands/core.htm#whois" class="postlink">http://www.egghelp.org/commands/core.htm#whois</a><br>and<br><a href="http://www.egghelp.org/commands/core.htm#match" class="postlink">http://www.egghelp.org/commands/core.htm#match</a><br><br>This is the main page, to all the above:<br><a href="http://www.egghelp.org/commands/index.htm" class="postlink">http://www.egghelp.org/commands/index.htm</a><br>and is well worth bookmarking.<br><br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Tue Aug 03, 2010 10:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2010-08-03T05:26:54-04:00</updated>

		<published>2010-08-03T05:26:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93729#p93729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93729#p93729"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93729#p93729"><![CDATA[
@Luminous, wickedly kewl!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool">  And thanks for the heads up guys on the insecure part for adding nicks instead of hosts.  On that note... when I'm in partyline with the bot... what's the command to add/remove users from the bot op's list? <br><br>Thanks for all the help.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Tue Aug 03, 2010 5:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-04T00:55:13-04:00</updated>

		<published>2010-08-02T23:06:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93725#p93725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93725#p93725"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93725#p93725"><![CDATA[
I changed a few things and added the option off adding a nick  and deleting a nick via pub commands, rather than having to mess with the actual file itself. I have to say though that you would be better of writing the host of the user rather than the nick... nicks are horribly insecure for opping. &lt;/disclaimer&gt;<br><div class="codebox"><p>Code: </p><pre><code>bind join - "% *" opbylistproc opbylist {nick uhost handle chan} {set opfile "scripts/opfile.txt"    set opinfo [open $opfile r]    set lines [split [read -nonewline $opinfo] \n]close $opinfo    foreach opcheck $lines {        if {[string match -nocase "$nick" $opcheck]} {      putquick "MODE $chan +o $nick"        } return    }}bind pub o|o !addop addopproc addop {nick host hand chan text} {    set newop [join [lindex [split $text] 0]]    set ops [open "scripts/opfile.txt"]    set nicks [split [read -nonewline $ops] \n] close $ops    if {![llength $nicks]} {        set ops [open "scripts/opfile.txt" w]    } else {        set ops [open "scripts/opfile.txt" a]    }    foreach line $nicks {        if {[string match -nocase "$newop" $line]} {     putquick "NOTICE $nick :$newop is already in opfile." return        }    } puts $ops "$newop"   close $ops}bind pub o|o !delop delopproc delop {nick host hand chan text} {    set delop [join [lindex [split $text] 0]]    set ops [open "scripts/opfile.txt"]    set nicks [split [read -nonewline $ops] \n] close $ops    if {![llength $nicks]} {   putquick "NOTICE $nick :Opfile is empty, nothing to delete." return    }    set line [lsearch -exact $nicks "$delop" ]    set newops [lreplace $nicks $line $line]    set ops [open "scripts/opfile.txt" w]    puts $ops [join $newops "\n"]  close $ops}</code></pre></div>Hope you like 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=11101">Luminous</a> — Mon Aug 02, 2010 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-02T11:33:56-04:00</updated>

		<published>2010-08-02T11:33:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93718#p93718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93718#p93718"/>
		<title type="html"><![CDATA[Re: auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93718#p93718"><![CDATA[
<blockquote class="uncited"><div>...<br>@willyw, it's a long story, but this is exactly what I'm looking for. Much thanks for your time. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote><br>You are quite welcome.    <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=10420">willyw</a> — Mon Aug 02, 2010 11:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2010-08-02T01:23:17-04:00</updated>

		<published>2010-08-02T01:23:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93711#p93711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93711#p93711"/>
		<title type="html"><![CDATA[Re: auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93711#p93711"><![CDATA[
Thanks, you guys are awesome!<br><br>@willyw, it's a long story, but this is exactly what I'm looking for. Much thanks for your time. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Mon Aug 02, 2010 1:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-08-01T23:20:06-04:00</updated>

		<published>2010-08-01T23:20:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93709#p93709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93709#p93709"/>
		<title type="html"><![CDATA[Re: auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93709#p93709"><![CDATA[
<blockquote class="uncited"><div>...    <br>Some sort of a list (of nicks), and if the nick joined the channel and his/her nick matches the list, the bot will give it op access. The bot checks the nick and not the host of the nick.<br><br>Many thanks!<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"></div></blockquote>Here's another take on it:<br><br><div class="codebox"><p>Code: </p><pre><code>bind join - "% *" opbylistproc opbylist {nick uhost handle chan} {set opfile "scripts/opfile.txt"set opinfo [open $opfile r]set data [read -nonewline $opinfo]close $opinfoset lines [split $data "\n"] foreach opcheck $lines {if {"[string tolower $opcheck]"=="[string tolower $nick]"} {pushmode $chan +o $nick   }}}</code></pre></div>See the line:   "scripts/opfile.txt"       above.   You need to create a plain text file, in your scripts directory, named opfile.txt.<br>(If you wish to keep the file elsewhere, change the path accordingly)<br>In this file, put one nick per line<div class="codebox"><p>Code: </p><pre><code>billjohnjackbillybobsomenick</code></pre></div>When one of these nicks joins, it will be op'd.<br>With a couple of quick tests, it worked for me.<br><br>Caution: this is a really insecure way to op.    <br><br>But, if I understood your request correctly, this is exactly what you asked for.  <br><br>Perhaps if you could describe with more detail exactly what you need, we could come up with better ideas for you.   What I have done here,  .... if you use it, will let anybody get op'd, simply by leaving, changing their nick to a known op's nick that is not in the channel at the moment, and joining again.<br>I can't see this as a desirable thing.<br><br>Is there a reason that you cannot use Eggdrop's built in userlist?  (It is secure.)<br>I see that you specifically mentioned to avoid using hostmask...  why?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Aug 01, 2010 11:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2010-08-01T22:19:53-04:00</updated>

		<published>2010-08-01T22:19:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93708#p93708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93708#p93708"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93708#p93708"><![CDATA[
And change <div class="codebox"><p>Code: </p><pre><code>if {![isvoice $nn $chan]} { </code></pre></div> to <div class="codebox"><p>Code: </p><pre><code>if {![isop $nn $chan]} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sun Aug 01, 2010 10:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anahel]]></name></author>
		<updated>2010-08-01T20:31:51-04:00</updated>

		<published>2010-08-01T20:31:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93707#p93707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93707#p93707"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93707#p93707"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>setudef flag tagvoicebind join - {% somenick*} voice:userbind nick - {% somenick*} voice:userproc voice:user {nick uhost hand chan {nn ""}} { if {$nn == ""} {set nn $nick} if {![isvoice $nn $chan]} {  pushmode $chan +o $nn }}</code></pre></div>it's just modified tcl for voicing ppl, just edit "somenick" to what do you want and it should work (it's working for me when i want to give hop for certain nick in my channel)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10737">Anahel</a> — Sun Aug 01, 2010 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[holycrap]]></name></author>
		<updated>2010-08-01T19:45:12-04:00</updated>

		<published>2010-08-01T19:45:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93706#p93706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93706#p93706"/>
		<title type="html"><![CDATA[auto op on certain nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93706#p93706"><![CDATA[
Hi guys,<br><br>    Can you guys code me a quick tcl file? Here's what I'm looking for.<br><br>Some sort of a list (of nicks), and if the nick joined the channel and his/her nick matches the list, the bot will give it op access. The bot checks the nick and not the host of the nick.<br><br>Many thanks!<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9651">holycrap</a> — Sun Aug 01, 2010 7:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
