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

	<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-06-07T05:11:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-06-07T05:11:41-04:00</updated>

		<published>2004-06-07T05:11:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37076#p37076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37076#p37076"/>
		<title type="html"><![CDATA[Request for on-join /chanserv WHY #chan nick TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37076#p37076"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#---------------------------------------------------------------------# why.tcl# Tcl script for IRC bot Eggdrop## Upon a +o mode by chanserv (dal.net) this script sends out a# WHY to chanserv and puts the result in the file WHY.txt## v0: 07-JUN-2004#---------------------------------------------------------------------package require Tcl 8.0bind mode - * mode:whybind notc - * notc:whyproc mode:why { nick uhost hand chan mchange victim } {   # check mode change   if { $mchange != "+o" } { return 0 }   # check nick and uhost opper is chanserv   if { $nick != "ChanServ" } { return 0 }   if { $uhost != "service@dal.net" } { return 0 }   # send a "why" message to chanserv   set chanserv chanserv@services.dal.net   puthelp "PRIVMSG $chanserv :WHY $chan $victim"}proc notc:why { nick uhost hand text dest} {   global botnick   # destination must be the bot   if { $dest != $botnick } { return 0 }   # check nick and uhost is chanserv   if { $nick != "ChanServ" } { return 0 }   if { $uhost != "service@dal.net" } { return 0 }   # a WHY result?   set matchrule {* has * access to *}   if { ![string match $matchrule $text] } { return 0 }   # save the why result to file   set cformat {%d-%b-%Y-%H:%M}   set stamp [clock format [clock seconds] -format $cformat]   set fd [open WHY.txt a+]   puts $fd "$stamp $text"   close $fd}putlog "Loaded (version 0): why.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Jun 07, 2004 5:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dollar]]></name></author>
		<updated>2004-06-06T02:40:15-04:00</updated>

		<published>2004-06-06T02:40:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37013#p37013</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37013#p37013"/>
		<title type="html"><![CDATA[Request for on-join /chanserv WHY #chan nick TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37013#p37013"><![CDATA[
Showing us the output of "/msg ChanServ WHY" would help...<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4046">dollar</a> — Sun Jun 06, 2004 2:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-06-05T20:44:35-04:00</updated>

		<published>2004-06-05T20:44:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37006#p37006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37006#p37006"/>
		<title type="html"><![CDATA[Request for on-join /chanserv WHY #chan nick TCL]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37006#p37006"><![CDATA[
Hi is there any tcl which will perform an on-join /chanserv why and save the result in a text file (logs) ?<br><br>If not , i have a suggestion , which i think it'll be very useful for the channel to trace those mkickers.<br><br>Make a tcl script which will : <br>1) When a user is opped by chanserv , ie ChanServ -mode- +o $nick , the script will /chanserv WHY #channel $nick <br> <br>2) Chanserv will return the WHY result , and save it into log file , eg: WHY.txt <br> <br>3) In those WHY.txt will save all the chanserv WHY results. <br> <br>This very useful to track who is the mkicker . Bcos some mkicker will simply identify to the AOP/SOP's nick , and disguised into another nick, which is very hard to trace which AOP/SOP did the mkick. I believe what i suggest can easily solve this problem. <br> <br>------------------------<br>Second problem :<br><br>If my eggdrop is banned, it'll automatically /chanserv unban itself. but it takes about 10-30 seconds to join back . Why ? Is there anyway to make it rejoin back asap ? thanks<br><br>If anyone can kindly put my idea into a tcl script , i'd be very grateful . Thanks<p>Statistics: Posted by Guest — Sat Jun 05, 2004 8:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
