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

	<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-03-16T11:10:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Joshua]]></name></author>
		<updated>2005-03-16T11:10:10-04:00</updated>

		<published>2005-03-16T11:10:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47749#p47749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47749#p47749"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47749#p47749"><![CDATA[
<blockquote class="uncited"><div>Basically we have binded for users with "n", so a normal user cannot trigger the bind. But we can add a new bind or modify the existing code to work on it.<br><br>I modified the existing one, here give it a go. It will only work for users who have a global|channel 'n' flag. Others will get an access denied message.</div></blockquote>Thank you so much.  I would be lieing if I didnt say I admire your talent with tcl.  Anyway... thanks again. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>Joshua<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6080">Joshua</a> — Wed Mar 16, 2005 11:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-03-16T06:56:25-04:00</updated>

		<published>2005-03-16T06:56:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47743#p47743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47743#p47743"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47743#p47743"><![CDATA[
Basically we have binded for users with "n", so a normal user cannot trigger the bind. But we can add a new bind or modify the existing code to work on it.<br><br>I modified the existing one, here give it a go. It will only work for users who have a global|channel 'n' flag. Others will get an access denied message.<br><div class="codebox"><p>Code: </p><pre><code>#Set the channels for this script to work onset op_chans "#chan1 #chan2 #chan3"#Set the blacklisted nicks which cannot be opped.set blacklisted_nicks {"nick1""nick2""nick3"}bind pub - "!opper" auto:opproc auto:op {nick uhost hand chan text} { global op_chans blacklisted_nicks  if {(![matchattr $hand n|n $chan])} { putserv "PRIVMSG $nick :\002You are not authorized to use this command.\002"; return 0 }  if {([lsearch -exact [string tolower $op_chans] [string tolower $chan]] == -1) || (![botisop $chan])} { return 0 }  if {([lindex $text 0] == "")} {   putserv "PRIVMSG $chan :\002ERROR:\002 No nick specified to op! Going ahead and opping $nick on $chan."   putserv "MODE $chan +o $nick"   return 0   }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] != -1)} {   putserv "PRIVMSG $chan :\002ERROR:\002 Unable to op the blacklisted nick: [lindex $text 0] on $chan."   return 0  }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] == -1)} {   putserv "PRIVMSG $chan :Opping $nick on $chan."   putserv "MODE $chan +o [lindex $text 0]"   return 0   } return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Mar 16, 2005 6:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Joshua]]></name></author>
		<updated>2005-03-16T06:44:43-04:00</updated>

		<published>2005-03-16T06:44:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47742#p47742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47742#p47742"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47742#p47742"><![CDATA[
<blockquote class="uncited"><div>Here is one I can code just in 5 mins so give it a try:<br><div class="codebox"><p>Code: </p><pre><code>#Set the channels for this script to work onset op_chans "#chan1 #chan2 #chan3"#Set the flag of the users who can use the !opper commandset op_flag "n"#Set the blacklisted nicks which cannot be opped.set blacklisted_nicks {"nick1""nick2""nick3"}bind pub $op_flag "!opper" auto:opproc auto:op {nick uhost hand chan text} { global op_chans op_flag blacklisted_nicks  if {([lsearch -exact [string tolower $op_chans] [string tolower $chan]] == -1) || (![botisop $chan])} { return 0 }  if {([lindex $text 0] == "")} {   putserv "PRIVMSG $chan :\002ERROR:\002 No nick specified to op! Going ahead and opping $nick on $chan."   putserv "MODE $chan +o $nick"   return 0   }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] != -1)} {   putserv "PRIVMSG $chan :\002ERROR:\002 Unable to op the blacklisted nick: [lindex $text 0] on $chan."   return 0  }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] == -1)} {   putserv "PRIVMSG $chan :Opping $nick on $chan."   putserv "MODE $chan +o [lindex $text 0]"   return 0   } return 0}</code></pre></div></div></blockquote>That works so damn good.  But is there something that I can put in there to reply to a non "n" user/non-blacklisted user.  I.E.  "\002You are not authorized to use this command.\002<br><br>Any help would be appriciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6080">Joshua</a> — Wed Mar 16, 2005 6:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-11T09:11:24-04:00</updated>

		<published>2005-02-11T09:11:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46518#p46518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46518#p46518"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46518#p46518"><![CDATA[
Here is one I can code just in 5 mins so give it a try:<br><div class="codebox"><p>Code: </p><pre><code>#Set the channels for this script to work onset op_chans "#chan1 #chan2 #chan3"#Set the flag of the users who can use the !opper commandset op_flag "n"#Set the blacklisted nicks which cannot be opped.set blacklisted_nicks {"nick1""nick2""nick3"}bind pub $op_flag "!opper" auto:opproc auto:op {nick uhost hand chan text} { global op_chans op_flag blacklisted_nicks  if {([lsearch -exact [string tolower $op_chans] [string tolower $chan]] == -1) || (![botisop $chan])} { return 0 }  if {([lindex $text 0] == "")} {   putserv "PRIVMSG $chan :\002ERROR:\002 No nick specified to op! Going ahead and opping $nick on $chan."   putserv "MODE $chan +o $nick"   return 0   }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] != -1)} {   putserv "PRIVMSG $chan :\002ERROR:\002 Unable to op the blacklisted nick: [lindex $text 0] on $chan."   return 0  }  if {([lindex $text 0] != "") &amp;&amp; ([onchan [lindex $text 0] $chan]) &amp;&amp; ([lsearch -exact [string tolower $blacklisted_nicks] [string tolower [lindex $text 0]]] == -1)} {   putserv "PRIVMSG $chan :Opping $nick on $chan."   putserv "MODE $chan +o [lindex $text 0]"   return 0   } return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Feb 11, 2005 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-10T20:49:28-04:00</updated>

		<published>2005-02-10T20:49:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46514#p46514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46514#p46514"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46514#p46514"><![CDATA[
If you read the rules you would not of posted the request.<br><br><a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=975" class="postlink">Heres one</a> start with that one and modify it. or try <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=1030" class="postlink">this one</a> or maybe <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=740" class="postlink">this one</a> or how about <a href="http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&amp;id=717" class="postlink">this?</a><br><br>Maybe try searching a little harder before giving up?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 10, 2005 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schiz0]]></name></author>
		<updated>2005-02-10T20:41:12-04:00</updated>

		<published>2005-02-10T20:41:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46513#p46513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46513#p46513"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46513#p46513"><![CDATA[
ok.<br>The only TCL i know is from what i taught myself, which is from a bunch of xchat and eggdrop scripts, and have written some extremely basic ones myself, but i don't know how to do this, i have tried a few times and it ended up not doing what it was supposed to do. I am sorry if this is the wrong forum, might i request a topic for requests?<br>Secondly, i did search the archive and didn't find anything, if you, or anyone else could point me to a catergory that has these, i would appreciate it.<br>Thirdly, 50 does not equal 6.<br>It says 50 invites. i have sent a few out, and it still says 50.<br>And yes, i read the rules for everything i sign up for. i have been screwed over in the past because i lacked to read the rules.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5981">Schiz0</a> — Thu Feb 10, 2005 8:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2005-02-10T20:32:50-04:00</updated>

		<published>2005-02-10T20:32:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46512#p46512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46512#p46512"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46512#p46512"><![CDATA[
First of all this is not a script making service. If you cant be arsed to learn yourself we cant be arsed to help you.<br><br>Secondly there are plenty of scripts in the archive that will do the things you requested if you bothered to look.<br><br>And lastly Gmail only ever give a maximum of 6 invites out at any one time.<br><br>Next time i suggest you read the <a href="http://forum.egghelp.org/viewtopic.php?t=6271" class="postlink">rules</a> before signing up and posting a request eh..... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Feb 10, 2005 8:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Schiz0]]></name></author>
		<updated>2005-02-10T20:17:45-04:00</updated>

		<published>2005-02-10T20:17:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46511#p46511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46511#p46511"/>
		<title type="html"><![CDATA[Autoop on trigger - Request]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46511#p46511"><![CDATA[
hey,<br> <br>I'm looking for a script for a eggdrop bot (v1.6.17) that does the following when a public trigger(!opper &lt;nick&gt;) is called:<br>-Give mode +o to the nick specified<br>-If no nick is specified, then give mode +o the person who called the trigger<br> <br>Some Features/details:<br>-Only allow a certain list of nicks to be able to use the trigger<br>-Have a 'Blacklist' of nicks that cannot be opped<br> <br>If anyone needs to contact me, email me at: <a href="mailto:Schiz0phrenic@gmail.com">Schiz0phrenic@gmail.com</a><br>or via IRC on server irc.beyondirc.net  channel: #DOORS<br> <br>I also have 50 gmail invites that don't seem to be going away, no matter how many i use, so if anyone wants one, contact me.<br>                        Thank you, it is greatly appreciated<br>                                    ~Schiz0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5981">Schiz0</a> — Thu Feb 10, 2005 8:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
