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

	<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>2004-11-22T13:21:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T13:21:55-04:00</updated>

		<published>2004-11-22T13:21:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42986#p42986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42986#p42986"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42986#p42986"><![CDATA[
Hence why we i want the nickserv thing lol.<br><br>i have already thought of takeovers, hence why i have a built in blocking script (which you dont see) and the nick needs to be activated via the db.<br><br>As for the mysql, its on a local db (ie they share the same server) and they are dual 2.8g xeons. i have some tricks up my sleeve, but any input (as to making a better/improved) system would be greatly appreciated.<br><br>I dont like the on join thing either, but they want it automatic. the less the ops have to do when joining the channels the better.<br><br>THanks guys for your help so far tho, its been great for the day or so i have been wokring on this project. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by Guest — Mon Nov 22, 2004 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-22T11:23:19-04:00</updated>

		<published>2004-11-22T11:23:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42978#p42978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42978#p42978"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42978#p42978"><![CDATA[
well, maybe not a complete takeover since it's +h not +o, but still, a harm could be done<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 22, 2004 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-22T11:20:46-04:00</updated>

		<published>2004-11-22T11:20:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42977#p42977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42977#p42977"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42977#p42977"><![CDATA[
@MarkReaktor7:<br><br>a couple of serious issues with your script:<ul><li>you query a sql database on join - this is a no-no, since you might get join-flooded (unless your channels are sort of unavailable to general public - invite only or keyed) and given that mysql queries through tcl are blocking, your bot would become pretty unresponsive</li> <li>you give ops relying on user's nick - also a no-no, this is begging for channel takeover</li><li>your [pushmode] won't enforce the mode until [flushmode] is called (or the script finishes)</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 22, 2004 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-22T11:06:38-04:00</updated>

		<published>2004-11-22T11:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42976#p42976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42976#p42976"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42976#p42976"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>How do i get info from the Notice that that server will send back to me?<br>Ie i will msg the server (from eggdrop of course) and it will send me back a Notice thing saying the &lt;&lt; ONLINE &gt;&gt; prompt</div></blockquote><a href="http://www.suninet.nl/tclguide/index.php?chap=4&amp;pg=1" class="postlink">Bind NOTC</a></div></blockquote>wrong<br><br>server notices don't trigger NOTC bind, he needs to bind raw NOTICE<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 22, 2004 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T05:19:27-04:00</updated>

		<published>2004-11-22T05:19:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42967#p42967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42967#p42967"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42967#p42967"><![CDATA[
YooHoo, they were useful resources but i am still lost.<br><br>This is what my script does (in the hope people will understand what i want)<blockquote class="uncited"><div>Our IRC channel utilises an eggdrop and the standard chanserv/nickserv. The problem we were finding was that we are a startup gaming communtiy which in the first month has gotten 2000+ members. The problem however, is we have a group of volunteers who are automatically granted certain irc permissions regarding their position on a database.<br><br>This database is all well and good, and i have managed to interface with a databse and auto-op these users as is now, HOWEVER, as well as this system might work it doesnt prevent someone from joining with the name of one of our volunteers and getting op access to the channel.<br><br>The way i thought of doing this was by using the nickserv to my advantage. I know chanserv can do what i want to, but we have a low amount of high level admins in the irc channel, therefore they cant set up the access for all the volunteers all the time.</div></blockquote>Now, when i first made this script i had been into tcl for 12 hours (considering i slept for 8 of those 12 i think im doing kind of good) but yer, this has me miffed. I could make a new process that runs on the NOTC thing i presume. but wont that parse the nickservers info and not the user i want opped?<br><br>I will provide my code that i have made so far, and if anyone is kind enough to make it so that it will only continue if the user has &lt;&lt; ONLINE &gt;&gt; in their /msg nickserv info line i would be very appreciative.<br><br><div class="codebox"><p>Code: </p><pre><code>set forumopid 7set gameopid 22set netopid 6set staffid 0set irc_chan "#testing"set namefield "field7"set autofield "field6"#### DO NOT CHANGE BELOW THIS LINE ####bind join - * autoactionbind pub "-" !voice add_voicebind pub "-" !halfop add_halfopbind pub "-" !op add_opbind pub "-" !devoice del_voicebind pub "-" !dehalfop del_halfopbind pub "-" !deop del_opbind msg "-" !deluser deactbind msg "-" !adduser reactbind NOTC - * testingproc autoaction {nick host handle chan {text ""}} {global db_handle irc_chan forumopid staffid gameopid netopid namefield# this is where if would go yes?set irc_sql "select * from userfield where $namefield = '$nick'"set irc_result [mysqlquery $db_handle $irc_sql]if {[set row [mysqlnext $irc_result]] != ""} {set id [lindex $row 0]set autoact [lindex $row 7]set sql "select usergroupid from user where userid = '$id'"set result [mysqlsel $db_handle $sql -list]if {$autoact == "Yes"} {if {$result == $forumopid} { pushmode $irc_chan +v $nick } elseif {$result == $gameopid} { pushmode $irc_chan +h $nick } elseif {$result == $staffid || $result == $netopid} { pushmode $irc_chan +o $nick }}}}</code></pre></div><p>Statistics: Posted by Guest — Mon Nov 22, 2004 5:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-11-22T04:17:08-04:00</updated>

		<published>2004-11-22T04:17:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42963#p42963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42963#p42963"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42963#p42963"><![CDATA[
<blockquote class="uncited"><div>How do i get info from the Notice that that server will send back to me?<br>Ie i will msg the server (from eggdrop of course) and it will send me back a Notice thing saying the &lt;&lt; ONLINE &gt;&gt; prompt</div></blockquote><a href="http://www.suninet.nl/tclguide/index.php?chap=4&amp;pg=1" class="postlink">Bind NOTC</a><br><blockquote class="uncited"><div>How would one extract say the first line of this notice and then make it a variable (ie $isident) so i could do a string match on it.</div></blockquote>I would imagine you would greatly benefit from reading the <a href="http://tmml.sourceforge.net/doc/tcl/" class="postlink">Tcl Reference Manual</a>, as well as tcl-commands.doc, located in the ~/eggdrop/doc section of your bot  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"> hope this helps<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Mon Nov 22, 2004 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T03:37:59-04:00</updated>

		<published>2004-11-22T03:37:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42961#p42961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42961#p42961"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42961#p42961"><![CDATA[
Ok i found i have the &lt;&lt; ONLINE &gt;&gt; thing<br><br>One thing i need to know (sorry if im asking too much, but im highly puzzled as to this): How do i get info from the Notice that that server will send back to me?<br><br>Ie i will msg the server (from eggdrop of course) and it will send me back a Notice thing saying the &lt;&lt; ONLINE &gt;&gt; prompt<br><br>How would one extract say the first line of this notice and then make it a variable (ie $isident) so i could do a string match on it.<p>Statistics: Posted by Guest — Mon Nov 22, 2004 3:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-11-22T01:55:35-04:00</updated>

		<published>2004-11-22T01:55:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42959#p42959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42959#p42959"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42959#p42959"><![CDATA[
Basically yes. Almost all IRCd's having network services such as ChanServ, NickServ employ this feature. After you have identified your nick you are set +r.<br><br>So there is a raw number I am sure, you have to look it up either in your ircd numerics, or general raw numerics for ircd's over the web. Whois that nick, bind on that particular raw number, if it exists:<br><br>-<br>awyeah has identified for this nick<br>-<br><br>You can then go ahead and do your stuff, if that line doesn't show upon whois meaning that nick hasn't been identified for. Also another method is /nickserv info &lt;nick&gt;<br><br>You can do some sort of string match maybe because when a nick is identified to nickserv and is in use it shows:<br><br>-<br>Nickserv info for nick: blabla /whois blabla<br>-<br><br>However when it is not in use, meaning not identified it just shows<br><br>-<br>Nickserv info for nick: <a href="mailto:ident@ip.com">ident@ip.com</a><br>-<br><br>There may be variations but there is a little bit of difference. Depends upon your IRCd and network services they use. I am mainly suggesting these from DALnet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Nov 22, 2004 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2004-11-22T00:51:28-04:00</updated>

		<published>2004-11-22T00:51:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42957#p42957</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42957#p42957"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42957#p42957"><![CDATA[
this is possible if your ircd includes an extra info line in WHOIS reply saying that nick has identified to NickServ (most ircds which implement some kind of interface with nick services do this)<br><br>your bot needs to run a script which binds raw to the server numeric identifying that additional info line, and then issue the WHOIS command<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Nov 22, 2004 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T00:18:48-04:00</updated>

		<published>2004-11-22T00:18:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42955#p42955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42955#p42955"/>
		<title type="html"><![CDATA[Nickserv - General question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42955#p42955"><![CDATA[
Hey all,<br><br>In an attempt to secure my op-bot while still being able have the advanced customisations of perosnally built script, i have come up with the best way to enforce my policies. However i dont know if its possible lol.<br><br>What i need is for my bot to see if someone is registered with nickserv, moreover, if they are identified..<br><br>Is such a thing possible? i searched on the forums but everyone wants to know how to get their bot to ident to nickserv itself.<br><br>I could most probably get ircop status for the bot if necessary etc. as we run our own ircd, but the easier it is the better <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by Guest — Mon Nov 22, 2004 12:18 am</p><hr />
]]></content>
	</entry>
	</feed>
