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

	<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>2002-08-26T21:50:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-26T21:50:34-04:00</updated>

		<published>2002-08-26T21:50:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10059#p10059</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10059#p10059"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10059#p10059"><![CDATA[
Well, the script is going well.<br><br>It will identify the nick with nickserv and if it not registered then it will register it. If it cannot register it will kill the bot. If the nick is in use it will use nickserv to recover it and then use it. Once I get all these features in place then I will start adapting it for dalnet.  Once I have dalnet running you think I would find some testers avail?<br><br>Presently I am using it on homelan servers. Is there a reliable way I can tell what server type it is using some server query? eg version et al ? I want to make the script so easy that you put in your nick, email and pass and off she goes. No more nickserv worries ever. <br><br>Most of the config is via a set of variables so it wont be that hard.<br><br>Regards<br><br>BK<p>Statistics: Posted by Guest — Mon Aug 26, 2002 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-08-26T08:13:45-04:00</updated>

		<published>2002-08-26T08:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10037#p10037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10037#p10037"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10037#p10037"><![CDATA[
That is no problem it happens to the best of people... <br><br>Just remember if you cant figure it out! Their is two places to look:<br><br>tcl-commands.doc [/home/user/eggdrop/docs]<br>and<br><a href="http://dev.scriptics.com/man/" class="postlink">http://dev.scriptics.com/man/</a><br><br>Have fun coding!!<br><br>----------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Mon Aug 26, 2002 8:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-24T05:17:18-04:00</updated>

		<published>2002-08-24T05:17:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9986#p9986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9986#p9986"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9986#p9986"><![CDATA[
Man, I shoud learn to read ...<br><br>But, I was tired after 4 hours coding a new language to me...<br><br>Thanks <br><br>BK <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Sat Aug 24, 2002 5:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-08-23T23:29:05-04:00</updated>

		<published>2002-08-23T23:29:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9983#p9983</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9983#p9983"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9983#p9983"><![CDATA[
<blockquote class="uncited"><div>putserv &lt;text&gt; [options]<br>    Description: sends text to the server, like '.dump' (intended for direct<br>      server commands); output is queued so that the bot won't flood itself<br>      off the server.<br>    Options: -next: push messages to the front of the queue<br>    Returns: nothing<br>    Module: server<br><br>  puthelp &lt;text&gt; [options]<br>    Description: sends text to the server, like 'putserv', but it uses a<br>      different queue intended for sending messages to channels or people.<br>    Options: -next: push messages to the front of the queue<br>    Returns: nothing<br>    Module: server</div></blockquote>You need to fix up the prefix of it:<div class="codebox"><p>Code: </p><pre><code>bind MSG m|m kick asus_kickproc asus_kick {nick uhost hand vasus} { global botnick if {$vasus == ""} {  puthelp "NOTICE $nick :Where is the chan??"  puthelp "NOTICE $nick :Usage: /msg $botnick kick &lt;chan&gt; &lt;who&gt;"  return  } else {  set asus_who [lindex $vasus 2]  puthelp "NOTICE $nick :Kicked $asus_who from [lindex $vasus 1]"  putserv "KICK $asus_who :Ban by $nick"  return 0 }}</code></pre></div>Hope that helps you out... <br>------------------------------<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Fri Aug 23, 2002 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-23T11:29:21-04:00</updated>

		<published>2002-08-23T11:29:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9978#p9978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9978#p9978"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9978#p9978"><![CDATA[
# nickserv event driven identify script<br><br>set nickserv "NickServ"<br>set chanserv "ChanServ"<br>set mynick "Bartender"<br>set mypass "christie"<br>set recovery 0<br>set mydebug 1<br><br>bind evnt - init-server my-initserver<br>bind notc - "*nickname is registered*" ident_nick<br>bind notc - "*password accepted*" authsuccess<br>bind raw - 436  { set recovery 1 }<br>bind need - "% op" needop<br><br>proc my-initserver {type} {<br>  nickservices<br>}<br><br><br>proc nickservices {} {<br>  global mydebug passauth channels recovery<br>  if {$mydebug} { putlog "Nickservices started" }<br><br>  # turn channels off until ident complete<br>  chanoff<br>  if {$recovery} { recovernick }<br><br>  # ok we are done <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>  if {$mydebug} { putlog "Nickservices finished" }<br>}<br><br>proc authsuccess {} {<br>  global mydebug<br>  if {$mydebug} { putlog "Authenticaion Success" }<br><br>  #  turn channels back on<br>  chanon<br><br>  unbind notc - "password accepted" authsuccess<br>  unbind notc - "please choose a different nick" identnick<br>  unbind raw - 436 { set recovery 1 }<br>}<br><br><br># turn all channels on<br>proc chanon {} {<br>  global mydebug channels<br>  if {$mydebug} { putlog "Channels set active" }<br>  foreach ch [channels] {<br>    channel set $ch -inactive<br>  }<br>}<br><br># turn all channels off<br>proc chanoff {} {<br>  global mydebug channels<br>  if {$mydebug} { putlog "Channels set inactive" }<br>  foreach ch [channels] {<br>    channel set $ch +inactive<br>  }<br>}<br><br>proc recovernick {} {<br>  global mydebug mynick mypass nick nickserv<br>  if {$mydebug} { putlog "Recovering nick" }<br>  bind notc - "RELEASE $mynick" releasenick<br>  putserv "PRIVMSG $nickserv RECOVER $mynick $mypass"<br>}<br><br>proc releasenick {} {<br>  global mydebug mynick mypass nick nickserv<br>  if {$mydebug} { putlog "Releasing nick" }<br>  unbind notc - "RELEASE $mynick" releasenick<br>  bind notc - "your nick has been released" revertnick<br>  putserv "PRIVMSG $nickserv RELEASE $mynick $mypass"<br>}<br><br>proc revertnick {} {<br>  global mydebug nick mynick<br>  if {$mydebug} { putlog "Reverting nick" }<br>  unbind notc - "your nick has been released" revertnick<br>  set nick mynick<br>}<br><br>proc ident_nick {} {<br>  global mydebug nickserv mypass<br>  if {$mydebug} { putlog "Identify myself" }<br>  putserv "PRIVMSG $nickserv IDENTIFY $mypass"<br>}<br><br>proc needop {channel type} {<br>  global mydebug chanserv nick<br>  if {$mydebug} { putlog "I need ops" }<br>  putserv "PRIVMSG $chanserv OP $channel $nick"<br>}<p>Statistics: Posted by Guest — Fri Aug 23, 2002 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-23T11:30:08-04:00</updated>

		<published>2002-08-23T11:27:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9977#p9977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9977#p9977"/>
		<title type="html"><![CDATA[Event driven nickserv handler]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9977#p9977"><![CDATA[
This is making my hair go grey.<br><br> No idea why I get the following Tcl error ...<br><br>[17:20] Nickservices started<br>[17:20] Channels set inactive<br>[17:20] Nickservices finished<br>[17:20] (irc.homelan.com claims to be irc2.homelan.com; updating server list)<br>[17:20] Tcl error [ident_nick]: called "ident_nick" with too many arguments<br>[17:20] -NickServ (<a href="mailto:services@homelan.com">services@homelan.com</a>)- This nickname is registered and protected.  If it is your<br>[17:20] -NickServ (<a href="mailto:services@homelan.com">services@homelan.com</a>)- nick, type /msg NickServ IDENTIFY password.  Otherwise,<br>[17:20] -NickServ (<a href="mailto:services@homelan.com">services@homelan.com</a>)- please choose a different nick.<br><br>Script is in next message...<p>Statistics: Posted by Guest — Fri Aug 23, 2002 11:27 am</p><hr />
]]></content>
	</entry>
	</feed>
